WordPress.org

Support

Support » How-To and Troubleshooting » Return 404 after blog hacked?

Return 404 after blog hacked?

  • Hi,

    My blog was hacked a month or so ago. Although I got everything up and running again, I still have an issue I’m trying to sort out. Google has a lot of those hacked pages in cache:

    http://www.google.com/search?q=site%3Aeldiabloenlosdetalles.net

    (see the fourth link and onwards). All of those ‘queries’ start with ‘?ZXcf’. Right now, all those links (malformed queries?) lead to my blog’s home page, but I’d like to make them go to a 404 page if I can. Is this possible?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • whooami

    @whooami

    Member

    you dont want to send a 404, you want send a 410, a ‘Gone’, like this:

    http://www.village-idiot.org/?ZXcfYyAnREShklSYDQzqYQnYjhfHXLhkhGxx

    notice the url?

    a 410 will eventually get those links removed from google.

    That page can be customized so that humans get a link to your blog and googlebot doesnt.

    whooami:

    Thanks, but how do I do that? right now, those queries are being redirected to my homepage. How did you do that in your blog?

    Thanks!

    just for the sake of posterity, this is the implementation of whooami suggestion:

    Add this to your .htaccess:

    RewriteEngine On
    RewriteCond %{QUERY_STRING} ^ZXcf(.*)$
    RewriteRule .* – [G,L]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Return 404 after blog hacked?’ is closed to new replies.
Skip to toolbar