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

    Join Date
    May 2000
    Posts
    109
    Rep Power
    15
    How can I protect my *.inc Files for reading throw the Clients-Browser? I would only have acces throw my php-scripts.

    With the apache httpd.conf Option:

    <Files ~ .inc>
    order allow,deny
    deny from all
    </Files>

    i can read it throw the Browser but also i can't read it with my php-scripts.

    Any suggestion??

    Thanx much
    pwluky

    Wish you a great day
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Eindhoven, NL
    Posts
    22
    Rep Power
    0
    pwluky, i guess by placing the .inc files above the html directory. BUT this topic has been placed here before just a couple of days ago, I suggest you perform a search on the msgboard...
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Location
    Redmond, WA
    Posts
    218
    Rep Power
    15
    set the include path in the php.ini file to an external folder that is outside the main root directory and put all your include files in there.
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
  8. #5
  9. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    and as well as the other suggestions - just rename your .inc file to .php or php3 - then even if someone finds it by accident they are not going to see anything worth looking at.

    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL

Similar Threads

  1. Can't move or delete it!
    By Hykinsel007 in forum Windows Help
    Replies: 3
    Last Post: June 15th, 2004, 03:41 PM
  2. Reading files that has certain parrent at once
    By cgi_pro in forum Perl Programming
    Replies: 2
    Last Post: January 29th, 2004, 10:13 PM
  3. how to rename files
    By dxgn in forum Perl Programming
    Replies: 1
    Last Post: January 1st, 2004, 01:10 PM
  4. How can I pack servlet files into a jar file?
    By suryahema in forum Java Help
    Replies: 1
    Last Post: December 18th, 2003, 08:32 AM
  5. Replies: 3
    Last Post: October 31st, 2003, 10:47 AM

IMN logo majestic logo threadwatch logo seochat tools logo