# SecFilterEngine off RewriteEngine on AddType text/plain cgi # RewriteRule ^(.*) http://intertwingly.net/$1 [R=301] # http://intertwingly.net/blog/2007/05/04/Inline-SVG-in-MSIE#c1178307054 # RewriteCond %{HTTP_HOST} "^www" # RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml # RewriteRule ^(.*) http://intertwingly.net/blog/$1 [R=301,L] setenvifnocase Referer "theinnerblog.info" spam_ref=1 Deny from env=spam_ref RewriteCond %{HTTP_ACCEPT} application/xrds\+xml RewriteCond %{HTTP_ACCEPT} !application/xrds\+xml\s*;\s*q\s*=\s*0(\.0{1,3})?\s*(,|$) RewriteRule ^$ http://intertwingly.net/public/yadis.xrdf [R,L] deny from 203.144.144.164 deny from 63.241.98.52 deny from 200.65.127.161 deny from 81.177.22.210 deny from 192.100.124.220 deny from 66.232.101.20 deny from 72.232.21.210 deny from 58.65.238.26 deny from 85.255.117.250 deny from 209.115.232.65 deny from 68.32.192.125 deny from 85.202.113.32 deny from 163.28.4.2 deny from 148.233.159.58 deny from 79.11.20.235 deny from 12.172.207.3 deny from 202.28.27.4 deny from 208.53.147.118 deny from 83.20.253.69 deny from 217.64.171.183 deny from 83.10.103.167 deny from 91.196.49.162 deny from 80.71.250.142 deny from 67.124.190.51 deny from 162.114.40.32 deny from 80.58.205.33 deny from 85.255.120.210 deny from 88.147.153.240 deny from 91.196.92.4 deny from 62.117.66.77 deny from 216.227.123.95 deny from 75.172.183.56 deny from 83.53.191.44 deny from 78.129.202.15 deny from 202.142.153.130 deny from 83.175.179.6 deny from 162.114.40.33 deny from 77.92.88.13 deny from 85.255.120.74 deny from 77.92.88.27 deny from 212.116.219.108 deny from 92.48.122.2 deny from 212.116.219.211 deny from 193.37.152.242 deny from 121.14.55.9 deny from 92.48.122.3 # RewriteCond %{REMOTE_ADDR} ^66\.57\.27\.65$ # RewriteCond %{HTTP_USER_AGENT} 6\.00\.8169$ # RewriteCond %{HTTP_USER_AGENT} ^Mozilla\/4\.0\ \(compatible[;]\ MSIE\ 6\.0[;]\ Windows\ NT\ 5\.2[;]\ \.NET\ CLR\ 1\.1\.4322\)$ # RewriteRule .* - [F] RewriteCond %{HTTP_USER_AGENT} AdultGods RewriteRule ^.* - [F] RewriteCond %{HTTP_REFERER} ^http://google.com$ RewriteRule .* - [F] # RewriteRule ^.* %{HTTP_REFERER} [R,L] # RewriteRule ^.* http://www.xxx-database.com/zz/ [R,L] # RewriteRule ^.* busted/goaway [R,L] # Redirect registry RewriteRule ^registry/ /mombo/register.cgi/$1 [L] # # Ensure that POST requests and requests with query strings are not # served from the cache. # RewriteCond %{QUERY_STRING} "!^$" RewriteCond %{REQUEST_URI} "!^/mombo/\w+.cgi" RewriteRule (.*) /mombo/gateway1.cgi/$1 [PT] # # Ensure that POST requests and requests with query strings are not # served from the cache. # RewriteCond %{REQUEST_METHOD} "POST" [NC] RewriteCond %{REQUEST_URI} "!^/mombo/\w+.cgi" RewriteRule (.*) /mombo/gateway2.cgi/$1 [PT] # # Redirect all missing files to the CGI script # RewriteCond %{REQUEST_FILENAME} !-s RewriteCond %{REQUEST_FILENAME}/index.html !-s RewriteRule (.*) /mombo/gateway0.cgi/$1 [PT] # # The following needs to be maintained in synch with the templates: # Add in the necessary headers when responses are served from the cache. # Header set X-Pingback http://intertwingly.net/blog/pingback AddType text/xml rss ffkar opml soap sn2 tb tbrss wsdl xss AddType text/plain txt esf AddType application/atom+xml atom AddType application/xhtml+xml xhtml AddType application/xhtml+xml html5 AddType application/rss+xml rss2 rss21 rss11 AddType application/rdf+xml rdf AddType application/x-netcdf cdf AddDefaultCharset utf-8 AddCharset utf-8 atom rss ffkar soap tb tbrss wsdl xss html AddCharset utf-8 txt esf xhtml rss2 rss21 rdf cdf # # Serve up XHTML with the proper mime type to browsers that will accept it # RewriteBase /blog RewriteCond %{REQUEST_FILENAME} /$ RewriteRule (.*) /blog/$1/index.html # RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml # RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml\s*;\s*q=0\.?0*(\s|,|$) # RewriteCond %{REQUEST_URI} ^([^.]*|.*\.html)$ # RewriteRule .* - [T=application/xhtml+xml;charset=utf-8] # # RewriteCond %{HTTP_ACCEPT} ^$ # RewriteCond %{REQUEST_URI} ^([^.]*|.*\.html)$ # RewriteRule .* - [T=application/xhtml+xml;charset=utf-8] # # RewriteCond %{HTTP_ACCEPT} !image/gif # RewriteCond %{HTTP_ACCEPT} text/html\s*;\s*q=0\.?0*(\s|,|$) [OR] # RewriteCond %{HTTP_ACCEPT} !text/html # RewriteCond %{HTTP_ACCEPT} (application|\*)/(xhtml\+xml|\*) # RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml\s*;\s*q=0\.?0*(\s|,|$) # RewriteCond %{REQUEST_URI} ^([^.]*|.*\.html)$ # RewriteRule .* - [T=application/xhtml+xml;charset=utf-8] # # # AddType application/xhtml+xml .html # # start with the assumption that everything is xhtml AddType application/xhtml+xml html RewriteRule ^([^.]*|.*\.html\d?)$ - [T=application/xhtml+xml;charset=utf-8] # respect requests to not send xhtml RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml\s*;\s*q=0\.?0*(\s|,|$) RewriteRule ^([^.]*|.*\.html\d?)$ - [T=text/html;charset=utf-8] # standards based backwards compatibility - for tools like Lynx RewriteCond %{HTTP_ACCEPT} text/html RewriteCond %{HTTP_ACCEPT} !text/html\s*;\s*q=0\.?0*(\s|,|$) RewriteCond %{HTTP_ACCEPT} !(application|\*)/(xhtml\+xml|\*) RewriteRule ^([^.]*|.*\.html\d?)$ - [T=text/html;charset=utf-8] # MSIE accomodation: simple click RewriteCond %{HTTP_ACCEPT} image/gif RewriteCond %{HTTP_ACCEPT} !html RewriteRule ^([^.]*|.*\.html\d?)$ - [T=text/html;charset=utf-8] # MSIE accomodation: open in new tab/window RewriteCond %{HTTP_ACCEPT} ^\*/\*$ RewriteCond %{HTTP_USER_AGENT} MSIE RewriteRule ^([^.]*|.*\.html\d?)$ - [T=text/html;charset=utf-8] # Social engineering # # RewriteRule ([0-9]+).rss2? http://intertwingly.net/blog/$1.atom [R=301] # RewriteRule (comments).rss2? http://intertwingly.net/blog/$1.atom [R=301] # RewriteRule (index).rss2?1? http://intertwingly.net/blog/$1.atom [R=301] # RewriteRule ([0-9]+).rdf http://intertwingly.net/blog/$1.atom [R=301] # RewriteRule (comments).rdf http://intertwingly.net/blog/$1.atom [R=301] # RewriteRule (comments).opml http://intertwingly.net/blog/$1.atom [R=301] # RewriteRule (index).rdf http://intertwingly.net/blog/$1.atom [R=301] # RewriteRule (index).esf http://intertwingly.net/blog/$1.atom [R=301] # RewriteRule (index).sn2 http://intertwingly.net/blog/$1.atom [R=301] # RewriteRule (index).xss http://intertwingly.net/blog/$1.atom [R=301] # RewriteRule (index).opml http://intertwingly.net/blog/$1.atom [R=301] # RewriteRule (index).cdf http://intertwingly.net/blog/$1.atom [R=301] # RewriteRule (index).txt http://intertwingly.net/blog/$1.atom [R=301] RewriteRule /([0-9]+|index|comments).(txt|cdf|ffkar|rdf|rss2?1?|opml|esf|sn2|xss) - [G,L] RewriteRule ^([0-9]+|index|comments).(txt|cdf|ffkar|rdf|rss2?1?|opml|esf|sn2|xss)$ - [G,L] # # RFC 3229 support # # RewriteCond %{REQUEST_URI} /blog/index.atom$ # RewriteCond %{HTTP:A-IM} \bfeed\b # RewriteCond /home/rubys/blog/history/index.%{HTTP:If-None-Match}.asis -s # RewriteRule index.atom$ /blog/history/index.%{HTTP:If-None-Match}.asis # # RewriteCond %{REQUEST_URI} /blog/comments.atom$ # RewriteCond %{HTTP:A-IM} \bfeed\b # RewriteCond /home/rubys/blog/history/comments.%{HTTP:If-None-Match}.asis -s # RewriteRule comments.atom$ /blog/history/comments.%{HTTP:If-None-Match}.asis