Skip to content

Hide your website in plain sight by making it accessible only after entering a secret token, returning error 404 otherwise.

License

Notifications You must be signed in to change notification settings

ziemek99/invisibility-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

invisibility-php

Hide your website in plain sight by making it accessible only after entering a secret token, returning error 404 otherwise.

WARNING

PROJECT IS NOT READY AT ALL. CURRENT CODE ONLY DRAWS THE IDEA OF THE DESIRED RESULT.

How to use

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!

Automation

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).

About

Hide your website in plain sight by making it accessible only after entering a secret token, returning error 404 otherwise.

Resources

License

Stars

Watchers

Forks

Languages