Mobile app version of vmapp.org
Login or Join
Rambettina238

: What is redirecting mobile visitors to our website? Our site may have been hacked. It loads okay on desktop browsers, but on mobile devices it redirects to a porn site. I can't see anything

@Rambettina238

Posted in: #Htaccess

Our site may have been hacked.

It loads okay on desktop browsers, but on mobile devices it redirects to a porn site.

I can't see anything in the source code or .htaccess which would be causing this.

The site is Wordpress based, and it used to use Wordpress Mobile Edition, but that is now deleted, yet the symptom persists.

Can you see what is redirecting mobile visitors?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Rambettina238

1 Comments

Sorted by latest first Latest Oldest Best

 

@Megan663

It is a server side redirect. There is something in the code that is powering your website that is detecting a mobile user agent and is issuing a 302 redirect. Your site has been hacked. I can confirm this with the following command line command. I'm using a command line program called curl to download your website and setting the user agent to what an HTC Desire phone would use.

$ curl -s -D - -A 'Mozilla/5.0 (Linux; U; Android 2.1-update1; de-de; HTC Desire 1.19.161.5 Build/ERE27) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17' www.louisbaxters.com.au/ HTTP/1.1 302 Found
Date: Tue, 12 Mar 2013 09:34:27 GMT
Server: Apache
Location: crzyluxtds.in/go.php?sid=1 Content-Length: 217
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://crzyluxtds.in/go.php?sid=1">here</a>.</p>
</body></html>


Here is a thread from other people that have this problem: wordpress.org/support/topic/problems-viewing-site-on-mobile-iphone-htaccess-related
They suggest removing the following lines from all .htaccess files. Even the .htaccess files hidden in directories:

RewriteRule ^(.*) crzyluxtds.in/go.php?sid=1 [L,R=302]


You should also delete the following files that may have been added:

wp-includes/pomo
wp-includes/pm.php


EDIT: Google launches new webmasters hacked page

If you haven't already either yourself or your web design administrator can run your site using Google's Webmaster Tools Hacked Page.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme