Hey again! :D
I'm just wanting to know how I can stop other people included any type of file that's on my domain? All the php include files I use shall be CHMOD'd to 644 and/or 604 depending on the file, but I'm wanting to know how I can perhaps use PHP to make sure the only type of scripts that can both execute and include are on my domain?
For example, no one will be able to include or use http://www.example.com/example.(php/css/js) unless the request is coming from the actual domain?
Does anyone know how to do this using PHP? I've read somewhere that you have to name your action something, and config the php to only be executed unless it's from that action - for example, Joomla uses this:
<?php defined( '_JEXEC' ) or die( 'Restricted access' );?>
Thanks!
Brownie.