How to set server/site mirror and auto reinstall?

Discussion in 'Site & Server Administration' started by wdstuff54, Apr 19, 2010.

  1. #1
    Hi,

    I am trying to find something that I can use on my server that will periodically check the files on the server against a predefined set and if changes are made to the files it will revert back to the old file.

    The idea is that if the site is hacked it will automatically "fix" itself.

    Ideally I would like something that checks MYSQL DB's as well.

    I have seen sites that seem to be using something that does this but haven't been able to find a way to do it myself.

    Any help would be much appreciated!
     
    wdstuff54, Apr 19, 2010 IP
  2. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #2
    your approach is different from default approach thats why you may never have seen such solution offered

    normal default approach is to really secure your site ALL the npossible way
    including but NOT limited to
    mod_security
    snort
    fail2ban
    serverkey authentication
    limited or NO member access
    and other security software such as rootkits check
    etc

    just over-writing hacked files may eventually lead to the word spreading in all www that your site remains open for all hackers thanks to your own lack of security knowledge and efforts !!!!
    of course there are ppl who say every site can be hacked ...
    but the point is that most hackers hack sites to abuse such sites / servers for illegal stuff such as phishing sites etc

    there are millions of sites open to be hacked in minutes
    therefore the simple fact that you have done a FULL effort to secure all common and easy security vulnerabilities makes your secured site a hackers choice of minor interest. why spend real efforts to hack a site if there are millions instantly open for hackers ....
     
    hans, Apr 24, 2010 IP