WordPress.org

Ready to get started?Download WordPress

Forums

My htaccess file is being hacked (3 posts)

  1. joewebmonger
    Member
    Posted 3 years ago #

    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. (77.78.239.6 or 77.78.239.8, 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 cougarmtnblog.com.

  2. digitalquill
    Member
    Posted 3 years ago #

    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
    </Files>

    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

  3. joewebmonger
    Member
    Posted 3 years ago #

    I'll give that a try - thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags