|
| |
|
|
Xenon
Posts: 44 Joined: 12/8/2003 From: Madrid, Spain Status: offline
|
HOW TO LIMIT THE ACCESS TO A PAGE - 12/4/2004 16:21:07
Hello there. I am now familiar with javascript and I would like to know how to do the following, which I think you can do: -Any internet user views my webpage. I would like the user to access a certain page, but only by pressing a link on my webpage (not by writing the url in the adress bar or clicking the page from the history display in IE). Kind regards and thanks in advance.
|
|
|
|
dpf
Posts: 7126 Joined: 11/12/2003 From: India-napolis Status: offline
|
RE: HOW TO LIMIT THE ACCESS TO A PAGE - 12/4/2004 20:50:27
you definitley cannot do this client-side with javascript..what you need is something server-side that blocks access without a password..try spooky login available from this forum
_____________________________
Dan
|
|
|
|
Mojo
Posts: 2441 From: Chicago Status: offline
|
RE: HOW TO LIMIT THE ACCESS TO A PAGE - 12/5/2004 0:18:39
You could do an HTTP_REFERER check. If they don't come from a specific page you redirect them to that page.
_____________________________
Split Testing Order Fulfillment Emergency Kits
|
|
|
|
pesty
Posts: 188 Joined: 7/2/2004 From: USA Status: offline
|
RE: HOW TO LIMIT THE ACCESS TO A PAGE - 12/5/2004 5:35:46
Hi Xenon, dpf is right about the address bar and javascript. Can't do it. But you can use location.replace() for the history. This method can load a series of pages that don't appear in the history. The user can still use the back and forward buttons, but they won't be able to use the history entries. Check in perl and php for a url blocker. I'm sure I seen a script like that in one of the free scripts sights. Hopes this helps, Pesty
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|