Welcome Guest, Not a member yet? Register   Sign In
Password protect a folder in CI
#7

Hi,
as soon as i password protect a directory in my public_html folder,
a .htaccess is auto generated inside the directoy eg:
-/public_html
--/dir_to_protect
--/dir_to_protect/.htaccess
This is what inside the file:
AuthType Basic
AuthName "folder_to_protect"
AuthUserFile "/home/user/.htpasswds/public_html/folder_to_protect/passwd"
require valid-user
Reply


Messages In This Thread
Password protect a folder in CI - by Johnny Stec - 02-16-2015, 02:00 AM
RE: Password protect a folder in CI - by Avenirer - 02-17-2015, 06:04 AM
RE: Password protect a folder in CI - by CroNiX - 02-18-2015, 08:35 AM
RE: Password protect a folder in CI - by CroNiX - 02-18-2015, 12:22 PM
RE: Password protect a folder in CI - by Johnny Stec - 02-19-2015, 03:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB