RewriteEngine on
#
RewriteCond %{HTTP_user_agent} libwww-perl [NC]
RewriteRule ^ - [F]
I am trying to use this from an old post by jdMorgan [
webmasterworld.com...]
The result on my site is that it blocks access only to files in my root directory /public_html. Sub-directories are unaffected.
I have changed the user agent on my site to WebDataCentre and am testing with FireFox and the User Agent Switcher.
I am wondering if the problem lies in the way Apache is configured in my setup.