Block All Versus Block Some

Sitepoint Members,

I have this code in my htacess. I was wondering, which files names can I move from the second part of this code to the first part? If I deny access to all of the files in the second part by putting them in the first part, I doubt browsers could pull up my site. I assume my site would be more secure if I put as many file names as possible in the first part.

<Files .htaccess|wp-config.php>
deny from all
</Files>
<Files xmlrpc.php|php.ini|wlwmanifest.xml|terms.html|aa.css|wp-app.php|wp-atom.php|wp-blog-header.php|wp-comments-post.php|wp-comments-rss2.php|wp-config-sample.php|wp-config.php|wp-cron.php|wp-feed.php|wp-links-opml.php|wp-load.php|wp-login.php|wp-mail.php|wp-pass.php|wp-rdf.php|wp-rss.php|wp-rss2.php|wp-settings.php|wp-trackback.php>
Order Deny,Allow
Allow from all
Deny from msnbot msnbot-media googlebot googlebot-image googlebot-mobile google-adsense slurp teoma yahoo-mmcrawler ask appie robozilla gigabot scrubby twiceler webcrawler scooter nazilla acoon abachobot architextspider scoutjet mantraagent
</Files>

Thanks,

Chris

Here’s my guess
xmlrpc.php wlwmanifest.xml wp-atom.php wp-comments-post.php wp-comments-rss2 wp-feed.php wp-mail.php wp-rdf.php wp-rss.php wp-rss2.php

I dot use manifest, atom, comments, rss, nor mail on my site.

Chris

Why don’t you move them from the second list to the first list one by one? As long as the site still works the move was okay. If the site broke move it back to the second list, or don’t put it in either.

Ok.

Thanks,

Chris