My site was hacked... how do i protect it in future?

Discussion in 'Site & Server Administration' started by steveyk, Jun 26, 2007.

  1. #1
    Hi, hope someone can help. my site was recently "hacked" and another website was put up and also viruses. i found out and let my webhost know, and now they have reset the whole account so its like new.

    I got a chance to ask the customer advisor as to how to protect it but i had to rush off in the middle of the conversation. He mentioned that i had to change the user permission *or something like that* so people couldn't change the script *again... it sounded something like that*.

    I was wondering if anyone could shed more light on this and if there are any good links teaching me how to do this

    Thanks for your time,

    steve
     
    steveyk, Jun 26, 2007 IP
  2. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #2
    1 - Upgrade the scipts you are using
    2 - If there are no updates available, you may need to find more secure replacements
    3 - Secure your scripts and also secure your PHP installation with Suhosin
    4 - Make sure all user input in scripts is made safe and never used without making it sure it is the kind of input expected
    5 - Change permissions on files to will help prevent people from changing them. Basically, users should be able to read the script/pages but not write to them.
    6 - Learn about network security and the *nix operating system and coding in the language used for your scripts -- or hire people who know these things
    7 - Regularly visit the forums for scripts you use for news about security vulnerabilities and possible fixes until the script is updated. Patch those holes.
    8 - Consider visiting hacking forums for news about early warnings about vulnerabilities in scripts you use.
     
    clancey, Jun 26, 2007 IP
  3. steveyk

    steveyk Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks clancey!
    how do i change the permission and what do i change it to?
     
    steveyk, Jun 27, 2007 IP
  4. sebastya

    sebastya Well-Known Member

    Messages:
    2,449
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    138
    #4
    then hire a wh hacker to check your flaws
     
    sebastya, Jun 27, 2007 IP
  5. gemini181

    gemini181 Well-Known Member

    Messages:
    2,883
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    155
    #5
    I found this for you on Google

    Change file permissions with FTP
    • Clancey had good advice
    • You're mostly looking for people to 'read' and not 'write', but...
    • If it's a forum or any interactive site, you need advice from the community which supports your script.

    ~~~~~~~~~~

    Important note:
    • Some scripts make it easy to modify the name of the 'admin' section...
    • ...to very effectively hide it from newbie (and some other) hackers.
    • This is a great security measure, if you're able to do it.

    Best wishes with your adventure :)
     
    gemini181, Jun 27, 2007 IP