GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   htaccess: deny from all, allow from xxx.xxx.xxx.xxx - with redirect? (https://gfy.com/showthread.php?t=714524)

X37375787 03-14-2007 07:43 AM

htaccess: deny from all, allow from xxx.xxx.xxx.xxx - with redirect?
 
I would like to block everyone's (but my own) access from a site temporarily, utilizing the following:

<Limit GET POST>
order deny,allow
deny from all
allow from xxx.xxx.xxx.xxx
</Limit>

Is there a way to add an additional statement that will redirect the denied surfers to a page?

Thanks!

prodiac 03-14-2007 08:36 AM

Sure, add a 403 ErrorDocument to the same htaccess file, which redirects where you want it to.

X37375787 03-14-2007 09:03 AM

Great, thank you very much! I will try that right now!


All times are GMT -7. The time now is 12:42 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123