The problem with DEFINE (in PHP) - The WWW

Users browsing this thread: 1 Guest(s)
eksith
Long time nixers
Thank you! It honestly comes down to one simple fact: You can't betray what you don't know.

So the alternative becomes, where do I store something that's visible to the scripting engine, but not the web server? PHP is in a good position in this regard since, if we use something like FastCGI with Nginx, for example, that completely decouples the web server from the scripting engine. The server literally cannot serve the file, since it's not in scope.

This came about a little while back when a good friend of mine did have a misconfigured server (because his host was incompetent) and it really came down to "how much can I withstand revealing"? Let's face it, any file -- really anything in the webroot of the site -- is readable by the web server. If it's readable, it can potentially be served. No matter how unlikely, we have to account for the possibility.


Messages In This Thread
The problem with DEFINE (in PHP) - by eksith - 16-10-2013, 09:31 AM
RE: The problem with DEFINE (in PHP) - by eksith - 16-10-2013, 11:04 AM
RE: The problem with DEFINE (in PHP) - by venam - 16-10-2013, 11:28 AM
RE: The problem with DEFINE (in PHP) - by eksith - 16-10-2013, 02:55 PM
RE: The problem with DEFINE (in PHP) - by eksith - 16-10-2013, 04:08 PM
RE: The problem with DEFINE (in PHP) - by desyncr - 21-11-2013, 08:23 PM