Skip to main content

Cgi-bin directory security

Comments

3 comments

  • User Avatar
    cPRex Jurassic Moderator
    Hey there! I'm not sure this would be any different than a WordPress site. By default, all WordPress credentials for the database are contained in /home/username/public_html/wp-config.php, although that file has 644 permissions. You could restrict access to that file through .htaccess or additional password protection. You could also look into creating includes in your code itself that reference a file in /home/username for the credentials so it isn't accessible to the world.
    0
  • User Avatar
    Jonas Everraert
    Thank you for the tips. I think your second recommendation is the easiest to do, so I will do that.
    0
  • User Avatar
    cPRex Jurassic Moderator
    You're very welcome!
    0

Please sign in to leave a comment.