I notice that my .htaccess file contains
<Files 403.shtml>
order allow,deny
allow from all
</Files>
Which allows the 403 error page, 403.shtml, to be viewed by addresses that are specified on a "deny from" line.
Rather than showing an error page, I would just like to show the home page of the (SEF-enabled joomla) site (not any other pages). My feeble attempt was:
<directory />
order allow,deny
allow from all
<directory>
But that just made the server unhappy.
What is the correct way to do this?
Best Answer
Wrap your
Deny
directives in aLimit
block, so that the 403 only kicks in when the spammer sends aPOST
request.This can be done either in the current location of the
Deny
directives (the htaccess file) or in your<Directory />
block.