User Tools

Site Tools


website_security

Warning: Use of undefined constant PREG_PATTERN_VALID_LANGUAGE - assumed 'PREG_PATTERN_VALID_LANGUAGE' (this will throw an Error in a future version of PHP) in /var/www/kucjica/emperors-wiki/inc/parser/xhtml.php on line 633

Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /var/www/kucjica/emperors-wiki/inc/parser/xhtml.php on line 633

Warning: Use of undefined constant PREG_PATTERN_VALID_LANGUAGE - assumed 'PREG_PATTERN_VALID_LANGUAGE' (this will throw an Error in a future version of PHP) in /var/www/kucjica/emperors-wiki/inc/parser/xhtml.php on line 633

Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /var/www/kucjica/emperors-wiki/inc/parser/xhtml.php on line 633

Password protect a folder on a server

create .htaccess and .htpasswd in this folder

.htaccess

AuthType Basic  
AuthName "restricted area"  
AuthUserFile /thefolder/.htpasswd  
require valid-user

.htpasswd file

user:csmBH6tTLNZBE

generate the pair user:password here: http://css-tricks.com/easily-password-protect-a-website-or-subdirectory/

check out the css-tricks for more details

website_security.txt · Last modified: 2014/02/19 20:17 by zoza