Answer the question
In order to leave comments, you need to log in
htaccess. Migrating to lighttpd
Finally decided to migrate from shared hosting to a dedicated server. There was a problem how to convert htaccess for lighttpd.
The CNC itself was transferred without problems, but I can’t imagine what to do with these lines.
Is it really possible to make lighttpd understand these checks and parameters?
Options +Includes +FollowSymLinks +Indexes
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} ("|%22).*(>|%3E|<|%3C).* [NC]
"^(.*)$" => "log.php [NC]
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC]
"^(.*)$" => "log.php [NC]
RewriteCond %{QUERY_STRING} (javascript:).*(;).* [NC]
"^(.*)$" => "log.php [NC]
RewriteCond %{QUERY_STRING} (;|'|"|%22).*(union|select|insert|drop|update|md5|benchmark|or|and|if).* [NC]
"^(.*)$" => "log.php [NC]
"(,|;|<|>|'|`) /log.php [NC]
php_value register_globals 0
php_flag session.bug_compat_warn 0
php_value session.use_trans_sid 0
php_value session.use_cookies 1
php_value session.use_only_cookies 1
ErrorDocument 404 /
RewriteCond %{HTTP_HOST} ^old-domain.ru\.ru$" => "[NC]
"^(.*)$" => "http://new-domain.ru/$1 [R=301,L]
Answer the question
In order to leave comments, you need to log in
>RewriteCond %{QUERY_STRING} (;|'|"|%22).*(union|select|insert|drop|update|md5|benchmark|or|and|if).* [NC]
Excellent sql injection protection) ))
It seems to me that all these rules can be thrown out, half of them check html tags, and the other half are generally configured in php.ini.Just rewrite
the 301st redirect.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question