Stopping a user from browsing via the address bar?
Moderator: General Moderators
-
DynamiteHost
- Forum Commoner
- Posts: 69
- Joined: Sat Aug 10, 2002 5:33 pm
Stopping a user from browsing via the address bar?
Hello,
How would I be able to stop a user from using the address bar of their browser to navigate a section of my site? I want it so they have to click the links to navigate....
Thanks!
How would I be able to stop a user from using the address bar of their browser to navigate a section of my site? I want it so they have to click the links to navigate....
Thanks!
You could open your site up in a new window with JavaScript. Just leave out the address bar. Have a look at the JavaScript documentation to find out what you can put in the third parameter.
However, you could view the source of the page, find the link, and open a full browser your self. PHP won't be able to help here, its server-side, and this is a client-side problem.
Code: Select all
window.open('page_name.htm', 'window_name', 'width=600,height=800');-
DynamiteHost
- Forum Commoner
- Posts: 69
- Joined: Sat Aug 10, 2002 5:33 pm
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
Code: Select all
if(empty($_SERVER['HTTP_REFERER'])) die("Do not enter URLS manually");-
DynamiteHost
- Forum Commoner
- Posts: 69
- Joined: Sat Aug 10, 2002 5:33 pm
Thanks dusty, thats exactly what i'm looking for!
How would I be able to do this:
Thanks 
How would I be able to do this:
Code: Select all
if NOT (empty($_SERVERї'HTTP_REFERER'])) {
}-
DynamiteHost
- Forum Commoner
- Posts: 69
- Joined: Sat Aug 10, 2002 5:33 pm