ErrorDocument 403 /errors/403.php # spammers and scanners Order Allow,Deny Deny from 69.13.156.208 Deny from 208.57.118.100 Deny from 216.229.143.241 Deny from 12.178.36.25 Deny from 81.95.146.227 Deny from 68.83.37.146 Deny from 80.58.205.34 Allow from all RewriteEngine On # host rewrite rules RewriteCond %{HTTP_HOST} !^beyondabstraction\.net [NC] RewriteCond %{HTTP_HOST} !^security.beyondabstraction\.net [NC] RewriteCond %{HTTP_HOST} !^$ [NC] RewriteRule ^/(.*) http://beyondabstraction.net/$1 [R=301,L] # security sub-blog RewriteRule ^security/?$ /category/security?title=off [R=301,L] RewriteCond %{REQUEST_URI} ^/wordpress.*$ [NC] RewriteRule wordpress/(.*) http://beyondabstraction.net/$1 [R=301,L] # legacy url rewriting RewriteCond %{REQUEST_URI} ^/school.php$ [NC] RewriteRule ^school.php$ http://%{SERVER_NAME}/stuff/school/ [R=301,L] RewriteCond %{REQUEST_URI} ^/school-stuff/?$ [NC] RewriteCond %{QUERY_STRING} class=([^&;]*)? [NC] RewriteRule .* http://%{SERVER_NAME}/stuff/school/%1/? [R=301,L] RewriteCond %{REQUEST_URI} ^/sonyfs660/?$ [NC] RewriteRule sonyfs660/? http://beyondabstraction.net/stuff/vaio-fs660/ [R=301,L] RewriteCond %{REQUEST_URI} ^/projects.php.*$ [NC] RewriteRule projects.php(.*)? http://beyondabstraction.net/stuff/projects/$1 [R=301,L] # bandwidth leechers RewriteCond %{HTTP_REFERER} ^https?://.*.ebay.com/.*$ RewriteRule .*\.(gif|GIF|jpg|JPG|png|PNG).*$ - [G,L] # spammers RewriteCond %{HTTP_REFERER} poker [OR] RewriteCond %{HTTP_REFERER} medicine [NC,OR] RewriteCond %{HTTP_REFERER} pills [NC,OR] RewriteCond %{HTTP_REFERER} diet [NC,OR] RewriteCond %{HTTP_REFERER} viagra [NC,OR] RewriteCond %{HTTP_REFERER} mortgage [NC,OR] RewriteCond %{HTTP_REFERER} casino [NC,OR] RewriteCond %{HTTP_REFERER} insurance [NC,OR] RewriteCond %{HTTP_REFERER} loan [NC,OR] RewriteCond %{HTTP_REFERER} xanax [NC,OR] RewriteCond %{HTTP_REFERER} meridia [NC,OR] RewriteCond %{HTTP_REFERER} incest [NC,OR] RewriteCond %{HTTP_REFERER} lesbian [NC,OR] RewriteCond %{HTTP_REFERER} viagra [NC,OR] RewriteCond %{HTTP_REFERER} adult [NC,OR] RewriteCond %{HTTP_REFERER} hentai [NC,OR] RewriteCond %{HTTP_REFERER} tramadol [NC,OR] RewriteCond %{HTTP_REFERER} phentermine [NC,OR] RewriteCond %{HTTP_REFERER} gambling [NC,OR] RewriteCond %{HTTP_REFERER} texas- [NC,OR] RewriteCond %{HTTP_REFERER} holdem [NC,OR] RewriteCond %{HTTP_REFERER} pharmacy [NC,OR] RewriteCond %{HTTP_REFERER} ultram [NC,OR] RewriteCond %{HTTP_REFERER} levitra [NC,OR] RewriteCond %{HTTP_REFERER} phentermine [NC,OR] RewriteCond %{HTTP_REFERER} cialis [NC,OR] RewriteCond %{HTTP_REFERER} payday [NC,OR] # WARNING: any inserted lines need NC,OR... only the last line should be NC RewriteCond %{HTTP_REFERER} tramadol [NC] RewriteRule .* - [F,L] # pass everything non-file/dir as a parameter to index RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]