View Single Post
Old 04-24-2008, 02:05 PM   #5 (permalink)
Evulness
The Contributor
 
Evulness's Avatar
 
Join Date: Apr 2008
Location: Tampa, FL
Posts: 65
Thanks: 6
Evulness is on a distinguished road
Default

i've been using...

Code:
//on index page
define ('SysFile', '1');

//on every page that is to only be viewed if accessed via index.php before EVERYTHING...
if (SysFile != '1')
{
die ('Attempting to access Restricted file!');
}
that will check if SysFile = 1, if SysFile isn't defined, script dies.
You could do a header('Location: h*ttp://site.com/index.php instead of die()

something i just thought of... writing a little script to log attempts to access restricted files. http_refferer, ip, time , etc... so you can see when, who... i'll post something about this later, cause i just had some crazy ideas heh
__________________
"Knowledge is power. Abuse it."~Evulness
My portfolio: www.evularts.com

Last edited by Evulness : 04-24-2008 at 02:08 PM. Reason: link went wrong
Send a message via AIM to Evulness
Evulness is offline  
Reply With Quote