HOW TO LIMIT THE ACCESS TO A PAGE (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


Xenon -> 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 -> 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




Mojo -> 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.




pesty -> 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




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.03125