This is a discussion on .htaccess within the Apache Web Server forums, part of the Web Server and Related Forums category; How do I prevent users bypassing a home page? ie Going direct to mysite/forum/index.php instead of mysite/...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
In article <f6sqsg$2o6$1$830fa7a5@news.demon.co.uk>,
"Brian Telford" <brian@remove.this.rushford.antispam.demon.co.uk > wrote: > How do I prevent users bypassing a home page? ie Going direct to > mysite/forum/index.php instead of mysite/index.htm you can't, unless you start relying on cookies/sessions/... In that last case, you have to set a short-life cookie for the user on mysite/index.htm and check for that cookie on mysite/forum/* needless to say that it's not very effective, and that it may become a real pain for users. patpro -- http://www.patpro.net/ |
|
|||
|
"Brian Telford" <brian@remove.this.rushford.antispam.demon.co.uk > wrote in
news:f6sqsg$2o6$1$830fa7a5@news.demon.co.uk: > How do I prevent users bypassing a home page? ie Going direct to > mysite/forum/index.php instead of mysite/index.htm > > Make use of the environment variables, Referrer, SetEnvIf, and AllowFrom in a <Directory> container. I'd have to play around with it some but I'm sure someone else can give you something a lot better, or give you some code to work with. ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms - Total Privacy via Encryption =---- |