Forum Moderators: open

Message Too Old, No Replies

Disable Address Bar?

         

uselessguy

8:21 pm on Jul 9, 2004 (gmt 0)

10+ Year Member



Hello. I am new to the forum and have only been developing web for a short time. Here is my situation---I am trying to build a page, (a confirmation page added to my Paypal shopping cart) which I do not want the users to veiw the URL in anyway. Is there anyway, maybe in javascript, that the address bar--NOT the status bar at the bottom, the ADDRESS bar can be disabled or display some alternate URL? My goal here is to make this page only accessible via a completed shopping cart purchase. The customer must make the purchase to view this page.
I appreciate any help. Thank you.

DrDoc

8:27 pm on Jul 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld.

Why do you want to hide the URL? Either way... you can do that if you open the page in a pop-up window...

uselessguy

8:36 pm on Jul 9, 2004 (gmt 0)

10+ Year Member



I only want to hide the one page---I have some items on the site that I have designated as BONUS items (customer wins a prize with the purchase of certain items). If the customer knows the URL, they will know which items to order. I am not trying to annoy people. This is strictly for business reasons.
Thank you for your help.

DrDoc

9:17 pm on Jul 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



They can right-click and view page properties...
Or, depending on browser, force the page to open in a window with address bar...

uselessguy

12:34 pm on Jul 11, 2004 (gmt 0)

10+ Year Member



Right click is already disabled

encyclo

1:05 pm on Jul 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Right click is already disabled

And that won't work on any non-IE browser or if the person has Javascript disabled - and even if it did, you can get the URL from the page properties option in the top menu. There is simply no way of hiding the URL of a page - if the person can access the page, it is because their system knows the URL, and so can display it.

If you want bonus items to be available to certain users, then you should look at using a cookie or session ID to target qualifying customers - then even if someone has the URL, it won't work unless they have gone through the right process.