marilynlov7 All American 650 Posts user info edit post |
How can I find the URL of the page that linked to my site? I need to make sure that only the people who come from a specific page, are allowed onto my page and that seems like a good way to do it. Basically I need to prevent someone from being able to link my page.
I tried Google but I can't seem to get my question worded correctly. 6/7/2006 12:56:47 PM |
1 All American 2599 Posts user info edit post |
HTTP_REFERER
yes. the variable is spelled wrong. 6/7/2006 1:16:44 PM |
esgargs Suspended 97470 Posts user info edit post |
Except that referer based .htaccess controls are completely useless. 6/7/2006 1:20:08 PM |
marilynlov7 All American 650 Posts user info edit post |
^ what is the recommended method of doing this then? 6/7/2006 3:20:01 PM |
Raige All American 4386 Posts user info edit post |
There's no real way to spot this automatically. You can:
1) Ban specific IP's and subnets etc 2) Make it so when people visit your main page they are given a session variable and on each page just have a thing that checks for that session variable and if it doesn't exist forwards them to your main page. (This would prevent anyone from linking to anything but your main page).
Then there is advanced software that does this.
Could you give us a better idea of the problem that's happening? 6/8/2006 9:54:34 AM |
marilynlov7 All American 650 Posts user info edit post |
Ah, I just need to restrict access to the pages after the main page and was just looking for shortcuts I guess. I'll go with the session variable probably. Thanks! 6/8/2006 10:12:43 AM |