Tutorial: Block User\'s Direct Access By whalleyboi09
Description
Use This Snippet to create a block function to stop users from accessing Include files directly ... just for some extra security
How To Do it
in your config.php file or w.e. you use add this nice little code
^ ^
| What Does This Mean ? |
well the IM_IN_THE_SCRIPT is just to label the DEFINE function so we can call it later while were doing the include
and the 1 tel's PHP that it is active so its just a simple way of turning it on and off
Next Part
in your file you would lke to include add this
^ ^
| Now What Does This Mean ? |
This goes goes to check if the user is accessing the script directly all you have to do now is add that part in all files you want to include weather their important or not