Apache – Disable libwww-perl access

libwww-perl access blocking

libwww-perl accessLibwww-perl access is often used by botnets and other nasty softwares to scan your site for vulnerabilities. Luckily it is quite easy to block libwww-perl access. Blocking libwww-perl access will increase safety on your server. Here is how it is done.

Open .htaccess file on the site you want to block libwww-perl access, and insert these lines below RewriteEngine On:
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* – [F,L]

libwww-perl is now blocked, and will not have access to that site again.
Thats it for blocking access libwww-perl in apache.

what is libwww-perl?

From Wikipedia:
LWP (for “Library for WWW in Perl”, also called libwww-perl) is a set of Perl modules that give Perl programming easy access to sending requests to the World Wide Web. libwww-perl provides an application programming interface to an HTTP client as well as a number of HTML utilities, and standard objects to represent HTTP requests and responses.

History
The first generation of libwww-perl was written by Roy Fielding using version 4.036 of Perl. Fielding’s work on libwww-perl provided a backend HTTP interface for his MOMSpider Web crawler. Fielding’s work on libwww-perl was informed by Tim Berners-Lee’s work on libwww, and helped to clarify the architecture of the Web that was eventually documented in HTTP v1.0. The second generation of libwww-perl was based on version 5.004 of Perl, and written by Martijn Koster and Gisle Aas.

Happy blocking!

About Author

Related Posts

php8 gd

PHP8 gd Activate after installation

PHP8 GD activate after installation. GD doesn’t get activated by default. Not even a reboot after installation will activate it. So how do we do it? In…

wordpress page not found

WordPress page not found after changing permalinks

Permalinks are a critical aspect of a WordPress website’s structure, providing user-friendly URLs that enhance both SEO and user experience. However, occasionally, WordPress users encounter permalink issues…

Debian 12: linux-image-6.1.0-10amd64

Troubleshooting dependency issues in Debian 12: Resolving linux-image-6.1.0-10amd64 package dependency problems. If you installed the Debian 12 from the live image the issue is the raspi-firmware. Even…

4 Best Free Nas Software That Is Open Source

Free NAS software or operating systems that are free to use and will turn a computer into a NAS more advanced than the dedicated boxes sold. What…

Raspbian default password

Raspbian default password

Looking for the Raspbian default password? It is the most essential username and password that you will need for your raspberry. At least if you are running…

OpenMediaVault default password

OpenMediaVault default password

OpenMediaVault default password is printed in the documentation. I did not see it the first time I installed it either. So I had to do some detective…

Leave a Reply