We are under dos attack and since about 7 days trying to figure out the way to mitigate it.
Softlayer box WHM 11.38.1 (build 15)
Installed few mods to protect ourself but none of them seem to have an effect on the zombie IP's
Today we fund a solution by redirecting them trough site root htaccess and it works.
But we want to do this on server level so we added the lines that work in htaccess in Include Editor and tested all 3 positions and none of them work. Soon as we remove those lines from htaccess
and put them in Include editor instead the IP's are not redirected anymore.
Just had Mike tech from SL try to figure this out for about 2h on the phone and we both came to a conclusion that the editor is not accepting the changes.
Mike also wanted to help us remove the redirect log for those IP's ( line one in code above combined with How To Tell Apache To Not Log Certain Requests In Its Access Log | HowtoForge - Linux Howtos and Tutorials ) but again include editor is not accepting the change
Softlayer box WHM 11.38.1 (build 15)
Installed few mods to protect ourself but none of them seem to have an effect on the zombie IP's
Today we fund a solution by redirecting them trough site root htaccess and it works.
Code:
RewriteEngine On
SetEnvIf User-Agent ".*MSIE 6.0; Windows NT 5.1; SV1.*" dontlog
RewriteCond %{HTTP_USER_AGENT} ".*MSIE 6.0; Windows NT 5.1; SV1.$" [OR]
RewriteCond %{HTTP_USER_AGENT} ".*MSIE 6.0; Windows NT 5.1;1813.$" [OR]
RewriteCond %{HTTP_USER_AGENT} "^(?:User-Agent: )?Mozilla/4.0 \(compatible; MSIE 6.0; Windows NT 5.1;(?: SV1|1813)\)$" [OR]
RewriteCond %{HTTP_USER_AGENT} "MSIE 6.0; Windows NT 5.1; SV1"
RewriteRule ^(.*)$ http://127.0.0.1/$1 [R=302,L]
But we want to do this on server level so we added the lines that work in htaccess in Include Editor and tested all 3 positions and none of them work. Soon as we remove those lines from htaccess
and put them in Include editor instead the IP's are not redirected anymore.
Just had Mike tech from SL try to figure this out for about 2h on the phone and we both came to a conclusion that the editor is not accepting the changes.
Mike also wanted to help us remove the redirect log for those IP's ( line one in code above combined with How To Tell Apache To Not Log Certain Requests In Its Access Log | HowtoForge - Linux Howtos and Tutorials ) but again include editor is not accepting the change