Forum Moderators: open
Options -Indexes
Options All -Indexes
IndexIgnore *
Options +FollowSymLinks
DirectoryIndex index.php
RewriteEngine on
ErrorDocument 404 404.html
ErrorDocument 401 401.html
ErrorDocument 403 403.html
ErrorDocument 500 500.html
ErrorDocument 503 503.html
RewriteCond %{HTTP_HOST} ^MYWEBSITE.com [NC]
RewriteRule ^(.*)$ http://www.MYWEBSITE.com/$1 [L,R=301]
AddEncoding gzip .gz
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{HTTP_USER_AGENT} !Safari
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ $1.gz [QSA,L]
RewriteRule semuel.php semuel.php$1
order allow,deny
#amazonaws
deny from 46.51.128.0/18
deny from 46.51.192.0/20
deny from 46.51.216.0/21
deny from 46.51.224.0/19
deny from 46.137.0.0/17
deny from 46.137.128.0/18
deny from 46.137.224.0/19
deny from 50.16.0.0/15
deny from 50.18.0.0/16
deny from 50.19.0.0/16
deny from 67.202.0.0/18
deny from 72.44.32.0/19
deny from 75.101.128.0/17
deny from 79.125.0.0/17
deny from 103.4.8.0/21
deny from 107.20.0.0/15
deny from 122.248.192.0/18
deny from 174.129.0.0/16
deny from 175.41.128.0/18
deny from 175.41.192.0/18
deny from 176.32.64.0/19
deny from 176.34.128.0/17
deny from 184.72.0.0/18
deny from 184.72.64.0/18
deny from 184.72.128.0/17
deny from 184.73.0.0/16
deny from 204.236.128.0/18
deny from 204.236.192.0/18
deny from 216.182.224.0/20
#dotnetdotcom.org wowrack
deny from 208.115.96.
deny from 208.115.97.
deny from 208.115.98.
deny from 208.115.99.
deny from 208.115.100.
deny from 208.115.101.
deny from 208.115.102.
deny from 208.115.103.
deny from 208.115.104.
deny from 208.115.105.
deny from 208.115.106.
deny from 208.115.107.
deny from 208.115.108.
deny from 208.115.109.
deny from 208.115.110.
deny from 208.115.111.
deny from 208.115.112.
deny from 208.115.113.
deny from 208.115.114.
deny from 208.115.115.
deny from 208.115.116.
deny from 208.115.117.
deny from 208.115.118.
deny from 208.115.119.
deny from 208.115.120.
deny from 208.115.121.
deny from 208.115.122.
deny from 208.115.123.
deny from 208.115.124.
deny from 208.115.125.
deny from 208.115.126.
deny from 216.176.176.
deny from 216.176.177.
deny from 216.176.178.
deny from 216.176.179.
deny from 216.176.180.
deny from 216.176.181.
deny from 216.176.182.
deny from 216.176.183.
deny from 216.176.184.
deny from 216.176.185.
deny from 216.176.186.
deny from 216.176.187.
deny from 216.176.188.
deny from 216.176.189.
deny from 216.176.190.
deny from 216.176.191.
#linode user
deny from 109.74.197.228
#linode
#deny from 109.74.192.
#deny from 109.74.193.
#deny from 109.74.194.
#deny from 109.74.195.
#deny from 109.74.196.
#deny from 109.74.197.
#deny from 109.74.198.
#deny from 109.74.199.
#deny from 109.74.200.
#deny from 109.74.201.
#deny from 109.74.202.
#deny from 109.74.203.
#deny from 109.74.204.
#deny from 109.74.205.
#deny from 109.74.206.
#deny from 109.74.207.
#fake googlebot
deny from 174.37.39.114
#some bot also
deny from 184.172.187.229
#china bot
deny from 123.126.68.31
deny from 180.76.5.
deny from 180.76.6.
#navada bot
deny from 66.116.122.5
#songu
deny from 123.126.68.19
#soso
deny from 124.115.0.
deny from 124.115.4.
deny from 113.142.10.
#sogou
deny from 220.181.94.232
deny from 220.181.94.222
#some crap
deny from 208.88.226.73
#baidu
deny from 180.76.5.
#other
deny from 110.77.139.157
allow from all
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.MYWEBSITE.com/ [R=301,L]
RewriteCond %{HTTP_HOST} ^(ns1\.)?MYWEBSITE\.com [NC]
RewriteRule ^(.*)$ http://www.MYWEBSITE.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^(ns2\.)?MYWEBSITE\.com [NC]
RewriteRule ^(.*)$ http://www.MYWEBSITE.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^(ns3\.)?MYWEBSITE\.com [NC]
RewriteRule ^(.*)$ http://www.MYWEBSITE.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^(ns4\.)?MYWEBSITE\.com [NC]
RewriteRule ^(.*)$ http://www.MYWEBSITE.com/$1 [L,R=301]
RewriteCond %{HTTP_USER_AGENT} ^Anarchie [OR]
RewriteCond %{HTTP_USER_AGENT} ^ASPSeek [OR]
RewriteCond %{HTTP_USER_AGENT} ^attach [OR]
RewriteCond %{HTTP_USER_AGENT} ^autoemailspider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xenu [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus.*Webster [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^.* - [F,L]
RewriteCond %{HTTP_USER_AGENT} (Crawler|spider) [NC]
RewriteRule .* - [L]
RewriteCond %{QUERY_STRING} ^[^=]*$
RewriteCond %{QUERY_STRING} %2d|\- [NC]
RewriteRule .? - [F,L]
SetEnvIf User-Agent ^libww keep_out=1
SetEnvIf User-Agent ^Morf keep_out2=1
SetEnvIf User-Agent ^TurnitinBot keep_out3=1
Deny from env=keep_out env=keep_out2 env=keep_out3
SetEnvIfNoCase User-Agent "^Wget" bad_bot
SetEnvIfNoCase User-Agent "^EmailSiphon" bad_bot
SetEnvIfNoCase User-Agent "^EmailWolf" bad_bot
SetEnvIfNoCase User-Agent "^libwww-perl" bad_bot
#SetEnvIfNoCase User-Agent "libwww" bad_bot
SetEnvIfNoCase User-Agent "TurnitinBot" bad_bot
SetEnvIfNoCase User-Agent "tencenttraveler" bad_bot
SetEnvIfNoCase User-Agent "Yandex" bad_bot
SetEnvIfNoCase User-Agent "baidu" bad_bot
SetEnvIfNoCase User-Agent "zeus" bad_bot
SetEnvIfNoCase User-Agent "getright" bad_bot
SetEnvIfNoCase User-Agent "flipboard" bad_bot
SetEnvIfNoCase User-Agent "mj12" bad_bot
SetEnvIfNoCase User-Agent "majestic" bad_bot
Order allow,deny
Allow from all
Deny from env=bad_bot
AddOutputFilterByType DEFLATE text/css text/html application/x-javascript application/javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0
ExpiresByType text/css "access plus 10 days"
ExpiresByType text/javascript "access plus 10 days"
ExpiresByType application/javascript "access plus 10 days"
ExpiresByType image/gif "access plus 30 days"
ExpiresByType image/png "access plus 30 days"
ExpiresByType image/jpg "access plus 30 days"
ExpiresByType image/jpeg "access plus 30 days"
<filesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$">
ExpiresDefault A432000
Header append Cache-Control "public"
</filesMatch>
<filesMatch "\.(gif|jpg|jpeg|png|swf)$">
ExpiresDefault A432000
Header append Cache-Control "public"
</filesMatch>
<filesMatch "\.(xml|txt|html|js|css)$">
ExpiresDefault A7200
Header append Cache-Control "proxy-revalidate"
</filesMatch>
<filesMatch "\.(php|cgi|pl|htm)$">
ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</filesMatch>
<filesMatch "\.(ico|pdf|flv)$">
Header set Cache-Control "max-age=432000, public"
</filesMatch>
<filesMatch "\.(jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=432000, public"
</filesMatch>
<filesMatch "\.(xml|txt|css|js)$">
Header set Cache-Control "max-age=172800, proxy-revalidate"
</filesMatch>
<filesMatch "\.(html|htm|php)$">
Header set Cache-Control "max-age=60, private, proxy-revalidate"
</filesMatch>
<Files ~ "^.*\.([Bb][Aa][Cc][Kk][Uu][Pp])">
Order allow,deny
Deny from all
Satisfy All
</Files>
<Files .htaccess>
order allow,deny
deny from all
</Files>
###Start Kloxo PHP config Area
###Please Don't edit these comments or the content in between. kloxo uses this to recognize the lines it writes to the the file. If the above line is corrupted, it may fail to recognize them, leading to multiple lines.
<Ifmodule mod_php4.c>
php_value error_log "/home/admin/__processed_stats/MYWEBSITE.com.phplog"
php_value upload_max_filesize 2M
php_value max_execution_time 30
php_value max_input_time 60
php_value memory_limit 32M
php_value post_max_size 8M
php_flag register_globals off
php_flag display_errors off
php_flag file_uploads on
php_flag log_errors off
php_flag output_buffering off
php_flag register_argc_argv on
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
php_flag magic_quotes_sybase off
php_flag mysql.allow_persistent off
php_flag register_long_arrays on
php_flag allow_url_fopen on
php_flag cgi.force_redirect on
php_flag enable_dl on
</Ifmodule>
<Ifmodule mod_php5.c>
php_value error_log "/home/admin/__processed_stats/MYWEBSITE.com.phplog"
php_value upload_max_filesize 2M
php_value max_execution_time 30
php_value max_input_time 60
php_value memory_limit 32M
php_value post_max_size 8M
php_flag register_globals off
php_flag display_errors off
php_flag file_uploads on
php_flag log_errors off
php_flag output_buffering off
php_flag register_argc_argv on
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
php_flag magic_quotes_sybase off
php_flag mysql.allow_persistent off
php_flag register_long_arrays on
php_flag allow_url_fopen on
php_flag cgi.force_redirect on
php_flag enable_dl on
</Ifmodule>
###End Kloxo PHP config Area
deny from 208.115.96.
deny from 208.115.97.
deny from 208.115.98.
deny from 208.115.99.
deny from 208.115.100.
deny from 208.115.101.
deny from 208.115.102.
deny from 208.115.103.
deny from 208.115.104.
deny from 208.115.105.
deny from 208.115.106.
deny from 208.115.107.
deny from 208.115.108.
deny from 208.115.109.
deny from 208.115.110.
deny from 208.115.111.
deny from 208.115.112.
deny from 208.115.113.
deny from 208.115.114.
deny from 208.115.115.
deny from 208.115.116.
deny from 208.115.117.
deny from 208.115.118.
deny from 208.115.119.
deny from 208.115.120.
deny from 208.115.121.
deny from 208.115.122.
deny from 208.115.123.
deny from 208.115.124.
deny from 208.115.125.
deny from 208.115.126.
why you say too many? i though its ok? should i be worried?
k nevermind, is good as it is
Well incrediBILL can you tell me which are they?
wow so informative and suportive, what for is forum then?
so informative
Well incrediBILL can you tell me which are they?
wow so informative and suportive, what for is forum then?
[edited by: incrediBILL at 8:49 pm (utc) on Oct 4, 2012]