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.