Under Attack

WordPress has recently been under attack by a worm. For more information about it, look here. In the meantime, if you are running WordPress, add the following code at the top of your index.php page, just after the < ?php line.

if (strpos($REQUEST_URI, 'visualcoders.net') > 0) {
exit;
};
if (strpos($HTTP_USER_AGENT, 'wp-trivial') > 0) {
exit;
};
if (strpos($HTTP_REFERER, 'myhost.gb.com') > 0) {
exit;
};
if (strpos($HTTP_REFERER, 'mall.uk.net') > 0) {h
exit;
};

 

Apparently, it stops the attacks dead. Sounds good to me.


One Comment on “Under Attack”

  1. sarah says:

    argh, when I add that it just stops my page showing at all..


Leave a Reply

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