Block user agent libwww-perl to improve wordpress site security

Libwww-perl is a user agent that is commonly used by hackers to attack on your site. Libwww-perl are botnet scripts that look for vulnerabilities in your software. We should block them to eliminate attacks on your site which improves your site security.

It is very simple to block user agent libwww-perl

Copy below two lines and add it to end of your .htaccess file

  1. RewriteCond %{HTTP_USER_AGENT} libwwwperl.* 
  2. RewriteRule .* ? [F,L]

That’s it. Your site is protected from user agent Libwww-perl.

About the Author


A passionate blogger. Love to share solutions and best practices on wordpress hosting, issues and fixes, excel VBA macros and other apps

Leave a Reply

Your email address will not be published. Required fields are marked *