To prevent certain files to be included by attack or remote scripts,
please read this article, especially the part with the function blockit(),
and the part on the bottom to prevent XSS-style attacks.
https://php.net/manual/en/function.get-i...-files.php
=====================================
And then there is also this strategy:
Check how many included files are there...
if(count(get_required_files()) < 2) { die(); }
Or how many minimum there should be rather than 2
please read this article, especially the part with the function blockit(),
and the part on the bottom to prevent XSS-style attacks.
https://php.net/manual/en/function.get-i...-files.php
=====================================
And then there is also this strategy:
Check how many included files are there...
if(count(get_required_files()) < 2) { die(); }
Or how many minimum there should be rather than 2