Jump to content

How to protect my root/index.php?


Recommended Posts

hey,

 

almost once a week lately some bot or some one is trying to stick a JS code into my index.php, to add links to the header and footer of the page, i casue the site not to go up, every time all i need to do i just to remove the code that been adde (in other words ro reupload the orignal index.php).

 

how to protect my self by preventing the access of the the new code?

 

 

thank you

Matan

Link to comment
Share on other sites

If you know exactly where it is coming from, then you should be able to stop it. What version of Prestashop are you using? It is virtually impossible for someone to change a file on your system without a security hole in the software or without ftp privileges. 99 times of 100 they get in through the ftp.

 

What do your server logs reflect as per people logging in with the ftp?

Link to comment
Share on other sites

From you host or in your cpanel is where you would get the logs. I think you are in over your head more than likely. Did you read about post commands on some website or something? Where are you getting this, it is incorrect information. I shared an article with you that shows you how to keep things safe.

 

Also what version of Prestashop?

Link to comment
Share on other sites

i consulted a friend that told me he thinks its post commands. i dont know how to protect my self and i didnt asked from him to help me he got enough on his head right now.

 

but the hack only effect the index.php nothing else... whats is going with it? what should i change or do to make it stop? i read the article you linked here and as far as i can see everything is like that.. my host is hostgator and ps version is 1.4.7.0

 

for example if i will fix now and reupload index.php, after 2-5 hours it will be the same, just with a different script inside my index.php to a different site redirection, or to a different site links in the header...

 

so it dosent look like someone is hacking, it feels like bot's that are scanning the internet and sending commands to sites hoping to score..

Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...