Support » Fixing WordPress » My htaccess file is being hacked

  • The .htaccess file on my blog is getting hacked repeatedly and pointing all links to a east european site – is there a way for me to get it to stop? The permissions on the file are 644, and I’ve placed a block on the IP address it keeps getting pointed to, without success, because they keep changing the IP address. ( or, etc)

    I’ve contacted my host who had me change my password to the account, and place a block on the IP – but that is all they can do apparently.

    Anyone have some good ideas? The blog website is

Viewing 2 replies - 1 through 2 (of 2 total)
  • It will depend on how they have hacked, if they are just hacking the .htaccess file, try adding this to your .htaccess file:

    <Files .htaccess>
    order allow,deny
    deny from all

    it will stop users being able to browse it, however if they are exploiting another form of hole in wordpress or your web server you have a whole different problem.

    Hope that helps

    I’ll give that a try – thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘My htaccess file is being hacked’ is closed to new replies.