AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hide URL Link MOTD (https://forums.alliedmods.net/showthread.php?t=282308)

skz 05-03-2016 21:33

Hide URL Link MOTD
 
It is possible to hide the url link in a MOTD? Or block the "Copy Page URL" option?

fysiks 05-03-2016 22:29

Re: Hide URL Link MOTD
 
Quote:

Originally Posted by skz (Post 2416450)
It is possible to hide the url link in a MOTD?

They have to have the link to be able to browse to it so hiding it doesn't do any good.



Quote:

Originally Posted by skz (Post 2416450)
Or block the "Copy Page URL" option?

I wish but AMX Mod X doesn't have access to client-side stuff like that.

Black Rose 05-05-2016 09:14

Re: Hide URL Link MOTD
 
Try to explain the problem. There might be another solution to it.

You can block access by sending some kind of key or signal pre opening the motd. And that key/signal is valid once. It's complicated but doable if you control the webpage that you're linking to.

skz 05-05-2016 11:37

Re: Hide URL Link MOTD
 
Quote:

Originally Posted by Black Rose (Post 2416876)
Try to explain the problem. There might be another solution to it.

You can block access by sending some kind of key or signal pre opening the motd. And that key/signal is valid once. It's complicated but doable if you control the webpage that you're linking to.

How can I do that?

klippy 05-05-2016 12:34

Re: Hide URL Link MOTD
 
Quote:

Originally Posted by skz (Post 2416928)
How can I do that?

Well, as Black Rose said, it could be complicated.

You need your game server to request a key from the web server that displays the page. The web server will then generate a key and make it valid for a few seconds and return that key to your game server, which you are going to use as an URL parameter when displaying a page.
It's just one of the ways that came to my mind. They are still going to have page's URL, but they won't be able to access the page unless you serve it to them.

Black Rose 05-05-2016 19:09

Re: Hide URL Link MOTD
 
You could do it with SQL of course. But I'm not very good at that so I'll leave that to someone else or get back to that when I got more time.
You also could merge the two php files into one index if you want to. But I'm going to bed now.
AMXX


post.php


get.php


All times are GMT -4. The time now is 18:43.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.