Raised This Month: $ Target: $400
 0% 

Hide URL Link MOTD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
skz
Senior Member
Join Date: Jul 2014
Location: Portugal
Old 05-03-2016 , 21:33   Hide URL Link MOTD
Reply With Quote #1

It is possible to hide the url link in a MOTD? Or block the "Copy Page URL" option?
__________________
skz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-03-2016 , 22:29   Re: Hide URL Link MOTD
Reply With Quote #2

Quote:
Originally Posted by skz View Post
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 View Post
Or block the "Copy Page URL" option?
I wish but AMX Mod X doesn't have access to client-side stuff like that.
__________________
fysiks is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 05-05-2016 , 09:14   Re: Hide URL Link MOTD
Reply With Quote #3

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.
__________________

Last edited by Black Rose; 05-05-2016 at 09:20.
Black Rose is offline
skz
Senior Member
Join Date: Jul 2014
Location: Portugal
Old 05-05-2016 , 11:37   Re: Hide URL Link MOTD
Reply With Quote #4

Quote:
Originally Posted by Black Rose View Post
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?
__________________
skz is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 05-05-2016 , 12:34   Re: Hide URL Link MOTD
Reply With Quote #5

Quote:
Originally Posted by skz View Post
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.
klippy is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 05-05-2016 , 19:09   Re: Hide URL Link MOTD
Reply With Quote #6

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
__________________

Last edited by Black Rose; 05-05-2016 at 19:18.
Black Rose is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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