FORUMS: list search recent posts

How to limit access to site

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Steve BrameHow to limit access to site
by on Jun 22, 2010 at 6:43:26 pm

I need to limit access to a web page. I only want to allow visits from clicking a link on another page...denying access by all others.

Return to posts index

Abraham ChaffinRe: How to limit access to site
by on Jun 22, 2010 at 6:51:53 pm

You could check the referrer using server side scripting which would be most effective or you could use javascript referrer check and than redirect.

if (document.referrer != '')


Return to posts index

Mike SmithRe: How to limit access to site
by on Jun 23, 2010 at 8:24:11 am

Abraham's javascript approach is a good one, if it doesn't matter too much to you if a few people get past.

But Javascript approaches, while neat, can be easily sidestepped by users turning off javascript in the browser - and of course some users do not have javascript in their browsing device.

If you really want the page to be hidden except via one link, you'll need to make sure you hide it from search engines so far as you can, with the robots txt approach (which is at least partly effective), and you'll need to use e.g. .htaccess to make people log in. You might be thinking about trying to avoid cached copies as well, perhaps with a nochache approach - but as usual, absolute security is a problem, and the harder you try to reach it the more hurdles you put up for your users.

Return to posts index

Post removed.

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2016 All Rights Reserved