Hide your website in plain sight by making it accessible only after entering a secret token, returning error 404 otherwise.
PROJECT IS NOT READY AT ALL. CURRENT CODE ONLY DRAWS THE IDEA OF THE DESIRED RESULT.
Edit config.php
to match your server's behavior and personal preferences, then just prepend every text file you want to protect with:
<?php
require 'invisibility.php';
?>
Then append .php
to the file extension and your files will be protected!
You can automate some of requirements. Instead of manually prepending invisibility.php
, you can instead auto-prepend it
by auto_prepend_file
in php.ini
. If you're using Apache HTTP Server, you can omit changing all text files' extensions
and instead force them to be interpreted by PHP interpreter by fiddling with .htaccess
or httpd.conf
(do your own research, I haven't figured that out yet).