Where Are Your PHP Includes?
Do not store your PHP includes in document root. This is a terrible practice. Here is just one reason why:
http://www.google.com/search?q=inurl%3Adb.inc
Don't recommend naming PHP includes with a .php extension. Don't recommend including code in PHP includes that prevents direct requests. Don't recommend the following for denying requests for .inc resources:
Order allow,deny Deny from all
The problem is not that these techniques are bad, but rather than they are neither optimal nor sufficient. If you employ these techniques, do so only to adhere to the principle of defense in depth. If you're only going to implement one safeguard, choose the best one.
Do not store your PHP includes in document root. There are no exceptions. There are no excuses.





29 Comments
1.
Mitch Pirtle said:
2.
Chris Shiflett said:
3.
Armand said:
4.
Christian Dickmann said:
5.
Jared Williams said:
6.
Alan Knowles said:
7.
Chris Shiflett said:
8.
Armand said:
9.
Basti said:
10.
Leendert said:
11.
Chris Shiflett said:
12.
Harry Fuecks said:
13.
Jared Williams said:
14.
Alan Knowles said:
15.
Chris Shiflett said:
16.
Armand said:
17.
Ammar Ibrahim said:
18.
Nev said:
19.
James Benson said:
20.
Adair said:
21.
Scottie said:
22.
Ariella said:
23.
Katey said:
24.
karma said:
25.
orbach said:
26.
orbach said:
27.
orbach said:
28.
orbach said:
29.
Glenn said: