How to send user to other site via htaccess on DENY
Posted
by iamdadude
on Stack Overflow
See other posts from Stack Overflow
or by iamdadude
Published on 2010-05-22T22:52:03Z
Indexed on
2010/05/22
23:00 UTC
Read the original article
Hit count: 198
I only want to allow one IP to access this site and want to send all the other users to google.com. How would I go about doing this? I have this at the moment -
AuthName "bla"
AuthType Basic
<LIMIT GET POST>
ORDER DENY,ALLOW
DENY FROM ALL
ALLOW FROM #IP
</LIMIT>
© Stack Overflow or respective owner