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');
?>
Related posts:
Tips and Tricks from an Internet Entrepreneur & Enthusiast
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');
?>
Related posts:
I don't say much but when I do get it sent to your inbox.
Copyright © 2010 · Genesis Theme Framework by StudioPress · WordPress · Log in
Recent Comments