...

View Full Version : Hiding the URL.



jamietrent
12-24-2010, 02:48 AM
I have a .php webpage. and I need the top url to be hidden for whoever goes to the webpage cant copy the url and visit again.


please help me.


my website is a cms

DJCMBear
12-24-2010, 02:54 AM
You should make a system to only allow the link to be used once and only once or if you want the user to use it once but again later on then set a lime limiter for example once they go to it then they have to wait 30mins lets say till they can use it again.

jamietrent
12-24-2010, 03:22 AM
no not that

DJCMBear
12-24-2010, 03:32 AM
Do you mean how to make the browser address bar not display the path to the current file?

Fou-Lu
12-24-2010, 04:18 AM
You cannot hide a url, not even with a JS property. The client can ALWAYS determine where they are. Always.
The only way to do this is to use a one shot url or background loading with curl, or soap, or something along that lines.
Don't forget that PHP cannot in any way interact with a client's browser. PHP does not care if the client is a web browser or any other type of software. It only cares about input and output on the provided ports, which yes is generally shared with the webserver.

DJCMBear
12-24-2010, 04:27 AM
You cannot hide a url, not even with a JS property. The client can ALWAYS determine where they are. Always.
The only way to do this is to use a one shot url or background loading with curl, or soap, or something along that lines.
Don't forget that PHP cannot in any way interact with a client's browser. PHP does not care if the client is a web browser or any other type of software. It only cares about input and output on the provided ports, which yes is generally shared with the webserver.

That's why I suggested a one use URL or a timed URL so in a way it is hidden if by hidden the meaning is no one but the first person who sees the link will be able to use it and no one else can.

Fou-Lu
12-24-2010, 11:42 AM
That's why I suggested a one use URL or a timed URL so in a way it is hidden if by hidden the meaning is no one but the first person who sees the link will be able to use it and no one else can.

Yep, very much like a password reset feature or something of the sorts.
I honestly can't see a reason to otherwise hide a url.

DJCMBear
12-24-2010, 01:58 PM
You could try htaccess as this allows you to mod the URL to hide the real path but it still won't stop the user reusing the link as Fou-Lu said the user will know where they are at all times.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum