By : Josh Stauffer
Just include this PHP code at the top of your include file.
<?php
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'includefilename.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Direct File Access Prohibited');
?>
Just include this PHP code at the top of your include file.
<?php
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'includefilename.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Direct File Access Prohibited');
?>
0