index.php: <?php define('inside', True); library.php: <?php if (! defined('inside')) die('Access denied');