.htaccess

.htaccess

am 09.07.2007 10:17:59 von Brian Telford

How do I prevent users bypassing a home page? ie Going direct to
mysite/forum/index.php instead of mysite/index.htm

Re: .htaccess

am 09.07.2007 12:28:38 von patpro

In article ,
"Brian Telford"
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/

Re: .htaccess

am 09.07.2007 13:40:08 von Mark Taylor

"Brian Telford" 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 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 =----