those actually block a DoS attack, I went ahead and placed it in my /etc/apache2
<Directory /var/www/*/web>
Options +Includes -Indexes
AllowOverride All
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
<files ~ "^\.st">
Order allow,deny
Deny from all
Satisfy All
</files>
<Files images>
deny from all
</Files>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^-$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^_$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*Morfeus.*$ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*revolt.*$ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*Toata.*$ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^libwww-perl [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^libwww-perl/[0-9].[0-9]* [NC,OR]
RewriteCond %{THE_REQUEST} (\?act\=) [NC,OR]
RewriteCond %{THE_REQUEST} (sql_login) [NC,OR]
RewriteCond %{THE_REQUEST} (basepath) [NC,OR]
RewriteCond %{THE_REQUEST} (libpath) [NC,OR]
RewriteCond %{THE_REQUEST} (absolute_path) [NC,OR]
RewriteCond %{THE_REQUEST} (vwar_root) [NC,OR]
RewriteCond %{THE_REQUEST} (includedir) [NC,OR]
RewriteCond %{THE_REQUEST} (file=http:\/\/) [NC,OR]
RewriteCond %{THE_REQUEST} (name=http:\/\/) [NC,OR]
RewriteCond %{THE_REQUEST} (phpbb_root_path) [NC,OR]
RewriteCond %{REMOTE_ADDR} ^63\.148\.99\.2(2[4-9]|[34][0-9]|5[0-5])$ [OR]
RewriteCond %{REMOTE_ADDR} ^63\.226\.3[34]\. [OR]
RewriteCond %{REMOTE_ADDR} ^63\.212\.171\.161$ [OR]
RewriteCond %{REMOTE_ADDR} ^65\.118\.41\.(19[2-9]|2[01][0-9]|22[0-3])$ [OR]
RewriteCond %{REMOTE_ADDR} ^12\.148\.196\.(12[8-9]|1[3-9][0-9]|2[0-4][0-9]|25[0-5])$ [OR]
RewriteCond %{REMOTE_ADDR} ^12\.148\.209\.(19[2-9]|2[0-4][0-9]|25[0-5])$ [OR]
RewriteCond %{REMOTE_ADDR} ^65\.102\.12\.2(2[4-9]|3[01])$ [OR]
RewriteCond %{REMOTE_ADDR} ^65\.102\.17\.(3[2-9]|[4-6][0-9]|7[01]|8[89]|9[0-5]|10[4-9]|11[01])$ [OR]
RewriteCond %{REMOTE_ADDR} ^65\.102\.23\.1(5[2-9]|6[0-7])$ [OR]
RewriteCond %{REMOTE_ADDR} ^128\.242\.197\.101$ [OR]
RewriteCond %{REMOTE_ADDR} ^64\.140\.49\.6([6-9])$ [OR]
RewriteCond %{REMOTE_ADDR} ^66\.51\.199\.244$ [OR]
RewriteRule .* - [F,L]
</IfModule>
</Directory>
seems to be working ok.
__________________
Debian(rocks) + Ispconfig 3.0.3
Boon-Inc.com Great Video
Boon-File.com Create flash text
Boon-Host.com Get great FREE games here
Boon-Dog.com glitter text makers,music and more
|
Recent comments
23 hours 19 min ago
1 day 8 hours ago
1 day 9 hours ago
1 day 13 hours ago
1 day 17 hours ago
1 day 17 hours ago
1 day 20 hours ago
2 days 6 hours ago
2 days 11 hours ago
2 days 12 hours ago