In the world of IT, there is also a name called HACKING, which is growing very fast in the industry. Yes hackers, spammers, bots are keep growing very fastly. The time has come when we need to become mindful.
There is a threat called libwww-perl (LWP). It is a WWW client/server library for perl which helps lot of hacker, spammer, bots to perform attacks on your website. So you need to be aware & try to apply some security through which attackers would not be able to steal any type of information from your web server.
So the first question arises, how to block libwww-perl (LWP) in Apache webserver to keep bots, spammers, attackers away ?
first check the apache access logs by typing:-
if you see the same marked line shown as in screen shot in your apache access log that means there is someone hacker who is trying to break the security of your webserver.
So libwww-perl (LWP) need to be blocked in your webserver so that your webserver would be safe from this type of attacks.
Now the question is how to block libwww-perl attacks ?
First you need to access your webserver and go to www/html directory & find the .htaccess file
Now edit your .htaccess file and add the code written below :-
make sure that code should be written after the “RewriteEngine On” line in your .htaccess file.
Now the question arises that how would you get to know that the code added by you in .htaccess file is working or not ?
So, it is very easy to know. What all you need to do is make a new script named test_libwww and add the below content in it :-
# Simple LWP browser for testing
# $ua->agent("Mozilla/8.0") # pretend we are very capable browser