How to block - Libwww-perl Access in .htaccess?

May 25, 2015 5.2k views
Ubuntu WordPress Apache

Hi there,

I’m not sure how to block -Libwww-perl using .htaccess. When I add this code after “RewriteEngine on” line:

RewriteCond %{HTTPUSERAGENT} libwww-perl.*
RewriteRule .* – [F,L]

I get a 500 internal error (even though I restart Apache2)

Thank you!

2 Answers

Check your error log to find out why.

  • Thanks. Where can I find the error log though? Never hard to look into it before that issue

RewriteCond %{HTTPUSERAGENT} libwww-perl.*
RewriteRule .* - [F,L]

Modify as per above

Have another answer? Share your knowledge.