Posted by Dylan Parry on 02/17/06 12:15
Pondering the eternal question of "Hobnobs or Rich Tea?",
snorkerz@gmail.com finally proclaimed:
> I'd like customers to only link to my pages from within the website, ie
> not from links or with direct urls. The only one to allow access from
> outside should be the home page.
You can do this with .htaccess, but it isn't very reliable. The main
problem that you will come across is that some user agents won't send a
referrer when requesting a page, so they will *always* be redirected to
your homepage.
To be honest, I can't see /why/ you are trying to do this? Could you
explain your rationale so that we could perhaps suggest something
better?
--
Dylan Parry
http://webpageworkshop.co.uk -- FREE Web tutorials and references
[Back to original message]
|