["BUG"] Protect directory

AleSSaNDRo

Verified User
Joined
Nov 19, 2004
Messages
108
Location
Milano(Italy)
When protect a directory, directadmin delete all contents of .htaccess and insert AuthGroupFile /dev/null
AuthName
etc...

It would be better if it ADD those lines instead eliminating all :mad:

;)
 
What happens if the other code in the file breaks what DirectAdmin is going to put in it, or the other way around?
 
Happens that all contents off that file will deleted.

For example, if in test/.htaccess there is:

Code:
RewriteEngine on
# prevent access from santy webworm a-e
RewriteCond %{QUERY_STRING} ^(.*)highlight=\%2527 [OR]
RewriteCond %{QUERY_STRING} ^(.*)SQL_INJECTION(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)wget\%20 [NC]
RewriteRule . - [R,F,L]

if i protect directory test, all contents off .htaccess will be deleted and directadmin insert:

Code:
AuthGroupFile /dev/null
AuthName
etc...
 
Fixed for next release.

It should maintain your previous data when protecting/unprotecting a directory.

John
 
Back
Top