how to chage display url in browser. please help!

wirefly

Newbie
Joined
Aug 4, 2011
Messages
35
Reaction score
1
Im using a simple basic html member login script. when i login with the username and password it shows the member url page: for example xxxx.htm. how can i hide this link from the url address bar or change the display of this link to a non existing link in this section.

basically a different url display after they login, but displays the xxxx.htm information.
 
You can't. There are some javascript codes that will change the address URL, but usually these only change the anchors (the portion beginning with # in a URL), and it doesn't work in all browsers. You could create a different page, yyyy.htm, and use a frameset or AJAX call to fetch the info from xxxx.htm, but the URL would still be visible in the source code, although it won't be visible in the address bar.

Other option is to perhaps fetch the output from xxxx.htm using PHP cURL and then display it on yyyy.htm. This will hide the address entirely, but you should send some sort of session hash via cURL to ensure the user is actually logged in and has permission to access that page.
 
also you could try rewriting it to php for example
 
Dude thanks for the feedback. Perhaps you can view this link and tell me how to protect this .htm page from being visible after they have logged in?

The link is: dynamicdrive.com/dynamicindex9/password.htm
 
Thanks for the feedback. Perhaps you can view this link and tell me how to protect this .htm page from being visible after they have logged in?

The link is: dynamicdrive.com/dynamicindex9/password.htm
 
just using .htaccess rules and you can rewrite the url ;)
 
Thank you for the feedback. Perhaps you can view this link and tell me how to protect this .htm page from being visible after they have logged in?

The link is: dynamicdrive.com/dynamicindex9/password.htm
 
Back
Top