Under Attack
Posted: Wed 29 December, 2004 Filed under: D4D™, Geeky 1 Comment »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.
argh, when I add that it just stops my page showing at all..