I have been researching various method for blocking directories and dir listings. Many versions seem to be implemented poorly or just overkill, using fancy rewrites and performance killing regex for everything.
Can anyone tell me if there are any issues with my solution: 1. Use ³Deny from all² for the dir to be protected. In local .htaccess or higher level .htaccess for better performance. 2. Place ErrorDocument 403 http://lwww.domainnam.com in a root-level (or other appropriate level) .htaccess file. No need for Rewrites, Rewritematches, index.php files in every folder, etc. This blocks the directory while taking care of the ugly 403 message. A redirect to the home page seems reasonable. But are there any SEO, etc. issues? Cliff
_______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php