#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    109
    Rep Power
    15
    I would protect the *.inc Files for reading, so that i can access only by my php-scripts.

    With the Apache Option:

    <Files ~ "^.ht">
    Order allow,deny
    Deny from all
    </Files>

    I can protect the .ht* Files for reading.
    But I added the following Option:

    <Files ~ ".inc">
    Order allow,deny
    Deny from all
    </Files>

    to protect all *.inc Files for reading. Now i have the problem that i can't read i from with my php-scripts. Can anyone help?

    Thanx
    pwluky

    The thing is simple if you now how it works...
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>Now i have the problem that i can't read i from with my php-scripts.

    You can't protect it when using "include". "fopen", you can.

IMN logo majestic logo threadwatch logo seochat tools logo