Jump to content

htaccess file hacked


Recommended Posts

Hi there, 

 

I installed several prestashop sites on hostpapa servers, and I never had problems.

Then I moved to planethoster, the site is often hacked. One usual problem is that the htaccess file is directly modified by hackers. I would like to know how it is possible, and what should I do to prevent it.

 

Thank you

 

PS : maybe some php or http configurations have to be done ?

 

Link to comment
Share on other sites

Put in your .htaccess of root webspace or at least on Prestashop .htaccess the following lines:

# secure htaccess file
<Files .htaccess>
 order allow,deny
 deny from all
</Files>

Insert this before or after Prestashop native code lines and not inside of it, to avoid the lines are deleted when you regenerate your .htaccess on back-office or by installation of modules.

Link to comment
Share on other sites

Hi there, 

 

I installed several prestashop sites on hostpapa servers, and I never had problems.

Then I moved to planethoster, the site is often hacked. One usual problem is that the htaccess file is directly modified by hackers. I would like to know how it is possible, and what should I do to prevent it.

 

Thank you

 

PS : maybe some php or http configurations have to be done ?

Maybe you should find a different host that doesn't suck

Link to comment
Share on other sites

Maybe you should find a different host that doesn't suck

Very difficult to find shared hostings not having this common problem.... Some of the one using server hardening/firewall than block Prestashop by the way that as result you will have a very slow back-office (they than block all suspected traffic...)

 

The best way to avoid hackers is to have a dedicated server and manage by your own the traffic, but this presumes that you are a technician/expert in server installation and configuration. Only by moving to another hoster will probably not solve the problem.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...