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?
Deny from
directives to block the spammers? Need to know where it is to tell you how to override it. Also - do you only want to grant them access to the home page, or are there other resources loaded by the home page (images, CSS, javascript) that should be allowed, too? It might be more appropriate to just block them from the forms (or from sendingPOST
requests, for instance)./static
? Or can we just allow all of the files with certain extensions, like.jpg
and.css
. What works best for your site?