thecsea/twofactor-dir/master/files/x.htaccess - Htaccess File

thecsea/twofactor-dir/master/files/x.htaccess

##START twofactor-dir

RewriteEngine on
RewriteRule ^get_qr.php$ get_qr.php [L,QSA] ##comment this line to hide get_qr.php for not logged users
RewriteCond %{HTTP_COOKIE}  !twofactorDir-{CUR_DIR}={COOKIE_CODE}
RewriteRule ^(.*)$ redirect.php [L,QSA]

<Files secret.php>
order allow,deny
deny from all
</Files>

##END twofactor-dir

On Github License

Files

Download PDF of Htaccess file
HTTP_COOKIE

Comments

Apache