Block libwww-perl attack in Apache Web Server
Block libwww-perl attack in Apache Web Server
Prashant Arora 1 response

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.

Blur

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 :-

Replace “http://your-website.com” with your domain name and then save & exit from the script.

Make that script executable by typing:-

Now execute the script by typing:-

Now the output should be “Error : 403 Forbidden”

If you get that output, it means you are safe from this types of attack…

If you have any doubt or query regarding this, just reply here so that i would be able to reply your query…:)

FOR ANY TYPE OF QUERY OR HELP, PLEASE CONTACT US


1 Response(s)

Jason

Jason

8 months ago

Greetings from Idaho! I’m bored at work so I decided to browse your blog on my iphone during lunch break.
I really like the info you provide here and can’t wait to take a look when I get
home. I’m shocked at how fast your blog loaded on my phone ..
I’m not even using WIFI, just 3G .. Anyways, good site!

Leave A Response

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

Please verify that you are not a robot.