SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard DoubleDee's Avatar
    Join Date
    Aug 2010
    Location
    Arizona
    Posts
    3,914
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Restricting Access Outside Web Root

    In my former life, I had a directory inside my Web Root called config, and inside that directory had a .htaccess file with this code...

    Code:
    deny from all

    My understanding was that code would prevent someone from accessing/opening any files in my config directory.

    Since then, I have eliminated that folder, and moved my config.php file outside of the Web Root to a directory called outside_web_root.

    Does having a .htaccess file - with that same code - in my new outside_web_root directory serve any purpose now??

    The goal being that I want to make it as difficult as possible for hackers to go where they shouldn't!!

    Hope that makes sense?!

    Thanks,


    Debbie

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,671
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    DD,

    That makes GOOD sense and, no, it should not be needed outside your webspace.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •