Home > Featured > PHP searches re-directing automatically to strange URLs? Check your .htaccess files starting at the root level
Bookmark and Share

PHP searches re-directing automatically to strange URLs? Check your .htaccess files starting at the root level

Posted on May 27, 2012 | Filed in Featured, Security

A few days ago one of our clients’ sites got hacked due to a vulnerability in a script that was used.  This was a well known PHP script and the manufacturer had put a patch in place. But after a few days, searches were randomly being re-directed to some Russian website. Checking the site on various systems and devices made it clear that this was not a browser hijack but a server based issue. Further checks found that the .htaccess file had been compromised and some re-direct instructions had been added to the .htaccess file along with a lot of whitespace before this code so that with a cursory glance, one would not see these additions.

Here is a sample of the modified .htaccess instructions:

Leave a Reply