+ Reply to Thread
Results 1 to 9 of 9

Thread: Help with securing website from hackers??

  1. #1
    daron0382 is offline x10Hosting Member daron0382 is an unknown quantity at this point
    Join Date
    Apr 2011
    Location
    Maryland or in my Laptop
    Posts
    10

    Exclamation Help with securing website from hackers??

    Can somebody help me with securing my website? its not new so its a not at risk now, but i wanna begin securing it from hackers, can someone guide me through it? i wanna be secure from sql injection & everything else

  2. #2
    MaestroFX1's Avatar
    MaestroFX1 is offline Community Advocate MaestroFX1 has a spectacular aura about
    Join Date
    Feb 2008
    Location
    Area 51
    Posts
    1,577

    Re: Help with securing website from hackers??

    #1 Restrict access to administrative folders.
    #2 Disable directory browsing.
    #3 Add captcha to further restrict.
    #4 SQL injection attacks.These can allow hackers to execute arbitrary SQL commands on your database through your Web site.To avoid this type of attacks, every piece of data supplied by a user on a Web form must be sanitized/validated so that they do not contain information that is not expected.
    You can use php scripts to sanitize, so that data that gets into database is free from attacking statements.

  3. #3
    daron0382 is offline x10Hosting Member daron0382 is an unknown quantity at this point
    Join Date
    Apr 2011
    Location
    Maryland or in my Laptop
    Posts
    10

    Re: Help with securing website from hackers??

    how to disable directory browsing?

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Help with securing website from hackers??

    Quote Originally Posted by daron0382 View Post
    how to disable directory browsing?

    In any .htaccess you have (if you have none, put one in your document root, here it is /home/yourCPanelUsername/public_html ) put the line:

    Options -Indexes
    Nothing is always absolutely so.

  5. #5
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: Help with securing website from hackers??

    You can't just say "How can I make my site secure?" and then we'll tell you how to secure it - it's a bit more complicated than that. You haven't even given us a URL

    Regarding SQL injections, it's a huge area, but if you use something like PDO and prepared statements, you should be fairly secure.

    If your website involves money, you may want to consider paying for a security audit. From what I've heard, it's fairly expensive - I've heard $100 an hour at 1000 lines of code an hour, but it will obviously take less time if it is well documented and well laid out. You may be able to hire a nub like me to do it for you. It'll be cheaper, and not as good quality, but they would probably get the job done.

    ~Callum
    Last edited by callumacrae; 04-14-2011 at 12:05 PM.
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  6. #6
    daron0382 is offline x10Hosting Member daron0382 is an unknown quantity at this point
    Join Date
    Apr 2011
    Location
    Maryland or in my Laptop
    Posts
    10

    Re: Help with securing website from hackers??

    i dont see how to add that line to my .htaccess because if i try create .htaccess it says it exist & if i browse i dont see it, but if i search it will appear but all i can do from there is double click it & it takes me to public_html

  7. #7
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: Help with securing website from hackers??

    It's a hidden file - UNIX files that begin with a dot (.) are not displayed by default. If you're using cPanel file manager you can use the settings in the top left, or if you're using FTP your client will have an option in the preferences. If you're using SSH like a true man, use ls -a

    ~Callum
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  8. #8
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Help with securing website from hackers??

    Passwords: 083049llewoL!@amroN
    Usernames: The admin user should not be 'admin' or 'root'

    That applies to all levels of your site. cPanel/FTP. Admin access to your software (WordPress, Drupal).

    Many of the scripts have security plugin/mods. Check them out and use one.

    Most scripts have "roles" for users. Interactive is nice, but consider only giving out the most restrictive "roles" you can.

    Where possible, store files outside of the document root. If they don't have to be accessible from the Web, they shouldn't be.
    Nothing is always absolutely so.

  9. #9
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: Help with securing website from hackers??

    Quote Originally Posted by descalzo View Post
    Where possible, store files outside of the document root. If they don't have to be accessible from the Web, they shouldn't be.
    Although if you're using PHP 5 you should be using OO PHP, and so it doesn't really matter - nothing bad will happen, the classes will just be defined and then the script will end

    ~Callum
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

+ Reply to Thread

Similar Threads

  1. Securing your PHP file upload scripts.
    By slacker3 in forum Tutorials
    Replies: 2
    Last Post: 12-05-2009, 11:44 AM
  2. Top tips for securing your website.
    By Fearghal in forum Tutorials
    Replies: 9
    Last Post: 10-18-2008, 07:53 AM
  3. How to securing your awstats
    By oracle in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 07-27-2008, 06:44 PM
  4. securing the account
    By shastar in forum Free Hosting
    Replies: 1
    Last Post: 09-16-2007, 08:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers