Here is 4 best methods to prevent access to your php file directly
Posted on November 29, 2015
Here is 4 best methods to prevent access to your php file directly
<?php if(count(get_included_files()) ==1) exit("Error , Contact vishvendrasingh1993@gmail.com"); echo "data here" ; ?> - See more at: http://www.vishvendrasingh.com/here-is-4-best-methods-to-prevent-access-to-your-php-file-directly/
<?php debug_backtrace() || die ("Direct access not permitted"); echo "data here" ; ?> - See more at: http://www.vishvendrasingh.com/here-is-4-best-methods-to-prevent-access-to-your-php-file-directly/
<?php if (strpos($_SERVER['REQUEST_URI'], basename(__FILE__)) !== false) {die('Error , Contact vishvendrasingh1993@gmail.com');} echo "data here" ; ?> - See more at: http://www.vishvendrasingh.com/here-is-4-best-methods-to-prevent-access-to-your-php-file-directly/
<?php if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { die('Error , Contact vishvendrasingh1993@gmail.com'); }; echo "data here" ; ?> - See more at: http://www.vishvendrasingh.com/here-is-4-best-methods-to-prevent-access-to-your-php-file-directly/