# Some hosts require RewriteBase to make RewriteRules work. RewriteEngine on RewriteBase / # Configure ETag Header unset Pragma Header unset ETag FileETag None #These lines block agents commonly used to harvest URLs and email addresses. #One of the uses of such agents is to gather URLs for subseqent referral spamming #by a large number of hosts. Thus, preventing their access may, by itself, decrease #the amount of referral spam you receive. RewriteCond %{HTTP_USER_AGENT} ^.*Indy\ Library.*$ [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^.*larbin2\.6\.3\@unspecified.*$ [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^.*Mail\.Ru.*$ [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Microsoft\ URL\ Control.*$ [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Mozilla/4\.0\ .*Win\ 9x\ 4\.90.*$ [NC,OR] #This one used to be the user agent for anonymizer---which was fine with me---but #recently it has been left as the user agent for what appear to be malicious bots #based on their behavior, so I've decided to block it for now. RewriteCond %{HTTP_USER_AGENT} ^.*TuringOS.*$ [NC,OR] #These lines block bots that use your bandwidth for their own commercial reasons. RewriteCond %{HTTP_USER_AGENT} ^abot.*$ [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^aipbot.*$ [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Linkwalker$ [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^.*nameprotect.*$ [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^.*TurnitinBot.*$ [NC,OR] #This series of conditions denies referrals from specific domain names. RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?300play.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?3333.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?42tower.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?4u.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?academyofmusic.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?accessthepeace.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?acrs.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?adminshop.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?advancedmoneyloans.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?affiliplanet.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?alphacarolinas.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?anightofcheese.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?apart\-?design.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?auktion.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?autogewinne24.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?autospiele24.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?babay.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?bigyonet.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?blondesoncams.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?blue.sexer.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?booksandpages.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?brandimensions.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?browserwindowcleaner.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?business2fun.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?chat\-nett.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?crescentarian.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?darkangelclan.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?deals.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?delorentos.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?digitaltwist.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?.*downloads.blogspot.com.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?euromillionen.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?eurotexans.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?eurowins.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?flowershopentertainment.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?freshness.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?fruitologist.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?.*gallery.blogspot.com.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?games.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?gargzdai.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?geldspiele24.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?gsm-support.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?gzltax.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?geldspiele24.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?goovle.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?handmade2000.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?happychappywacky.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?hawk.tcm-services.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?heil-fasten.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?healthstones.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?hermosa.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?immobiliengewinne24.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?investment4cashiers.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?jailbreakiphone3gs.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?jamesthesailorbasher.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?jmsimonr.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?jfcadvocacy.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?jennifer-hawkins-video-pics.blogspot.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?justanotherdomainname.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?kardtoons.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?keywordmaster.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?linkerdome.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?lipitormedication.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?locators.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?longermalternatives.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?maloylawn.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?masteroftheblasterhill.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?mature--young.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?metapannas.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?middlecay.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?midnightlaundries.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?mikeapartment.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?mouthfreshners.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?mondialcoral.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?mp-forum.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?music-art-friends.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?mykeyboardisbroken.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?naughtykittys.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?nehrucollege.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?newreleaseonline.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?nextfrontiersonline.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?nustramosse.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?oiline.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?old-young.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?one2onemag.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?ourownweddingsong.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?ourtownhelps.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?owned.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?paradiserecreations.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?parkviewsoccer.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?pay4link.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?persist-pharma.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?pharmacy-2003.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?popwow.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?psychexams.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?qw8.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?realestateonthehill.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?reisegewinne24.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?referrer-script.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?rimpim.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?rootfood.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?sedonaretreat.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?shemale.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?single66.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?slamhost.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?stmaryonline.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?sophiesplace.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?southernxstables.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?spielepsychatrie.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?sportsparent.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?superdolphins.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?superface.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?suttonjames.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?t35.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?targetindustries.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?thatwhichis.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?thorcarlson.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?topgewinn24.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?topspiele24.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?top-deals*.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?top-site.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?trafficmagnet.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?transexual.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?trueuninstall.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?uchase.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?uk\-contact.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?usa\-wins.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?valeofglamorganconservatives.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?vendini.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?vietnamdatingservices.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?vinegarlemonshots.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?wadoo.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?webmasterplan.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?whincer.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?whitpagestrippers.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?worldfilebooklets.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?wseeker.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?xmaster.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?xopy.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?xxx.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?yahh+oo.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?yourdomain.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?zalaszentgrot.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?www14\.blogspot.*$ [NC,OR] RewriteCond %{HTTP_REFERER} ^(http://)?12\.163\.72\.13.*$ RewriteRule ^.* - [F,L] AddType text/css .css AddType application/x-javascript .js AddType text/richtext .rtf .rtx AddType image/svg+xml .svg .svgz AddType text/plain .txt AddType text/xsd .xsd AddType text/xsl .xsl AddType text/xml .xml AddType video/asf .asf .asx .wax .wmv .wmx AddType video/avi .avi AddType image/bmp .bmp AddType application/java .class AddType video/divx .divx AddType application/msword .doc .docx AddType application/x-msdownload .exe AddType image/gif .gif AddType application/x-gzip .gz .gzip AddType image/x-icon .ico AddType image/jpeg .jpg .jpeg .jpe AddType application/vnd.ms-access .mdb AddType audio/midi .mid .midi AddType video/quicktime .mov .qt AddType audio/mpeg .mp3 .m4a AddType video/mp4 .mp4 .m4v AddType video/mpeg .mpeg .mpg .mpe AddType application/vnd.ms-project .mpp AddType application/vnd.oasis.opendocument.database .odb AddType application/vnd.oasis.opendocument.chart .odc AddType application/vnd.oasis.opendocument.formula .odf AddType application/vnd.oasis.opendocument.graphics .odg AddType application/vnd.oasis.opendocument.presentation .odp AddType application/vnd.oasis.opendocument.spreadsheet .ods AddType application/vnd.oasis.opendocument.text .odt AddType audio/ogg .ogg AddType application/pdf .pdf AddType image/png .png AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx AddType audio/x-realaudio .ra .ram AddType application/x-shockwave-flash .swf AddType application/x-tar .tar AddType image/tiff .tif .tiff AddType audio/wav .wav AddType audio/wma .wma AddType application/vnd.ms-write .wri AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw AddType application/zip .zip ExpiresActive On ExpiresByType text/css A31536000 ExpiresByType application/x-javascript A31536000 ExpiresByType text/richtext A3600 ExpiresByType image/svg+xml A3600 ExpiresByType text/plain A3600 ExpiresByType text/xsd A3600 ExpiresByType text/xsl A3600 ExpiresByType text/xml A3600 ExpiresByType video/asf A31536000 ExpiresByType video/avi A31536000 ExpiresByType image/bmp A31536000 ExpiresByType application/java A31536000 ExpiresByType video/divx A31536000 ExpiresByType application/msword A31536000 ExpiresByType application/x-msdownload A31536000 ExpiresByType image/gif A31536000 ExpiresByType application/x-gzip A31536000 ExpiresByType image/x-icon A31536000 ExpiresByType image/jpeg A31536000 ExpiresByType application/vnd.ms-access A31536000 ExpiresByType audio/midi A31536000 ExpiresByType video/quicktime A31536000 ExpiresByType audio/mpeg A31536000 ExpiresByType video/mp4 A31536000 ExpiresByType video/mpeg A31536000 ExpiresByType application/vnd.ms-project A31536000 ExpiresByType application/vnd.oasis.opendocument.database A31536000 ExpiresByType application/vnd.oasis.opendocument.chart A31536000 ExpiresByType application/vnd.oasis.opendocument.formula A31536000 ExpiresByType application/vnd.oasis.opendocument.graphics A31536000 ExpiresByType application/vnd.oasis.opendocument.presentation A31536000 ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000 ExpiresByType application/vnd.oasis.opendocument.text A31536000 ExpiresByType audio/ogg A31536000 ExpiresByType application/pdf A31536000 ExpiresByType image/png A31536000 ExpiresByType application/vnd.ms-powerpoint A31536000 ExpiresByType audio/x-realaudio A31536000 ExpiresByType application/x-shockwave-flash A31536000 ExpiresByType application/x-tar A31536000 ExpiresByType image/tiff A31536000 ExpiresByType audio/wav A31536000 ExpiresByType audio/wma A31536000 ExpiresByType application/vnd.ms-write A31536000 ExpiresByType application/vnd.ms-excel A31536000 ExpiresByType application/zip A31536000 AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html Header append Vary User-Agent env=!dont-vary AddOutputFilterByType DEFLATE text/css application/x-javascript text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon Header set Pragma "public" Header set Cache-Control "public, must-revalidate, proxy-revalidate" FileETag MTime Size Header set X-Powered-By "W3 Total Cache/0.9.1.3" Header set Pragma "public" Header set Cache-Control "public, must-revalidate, proxy-revalidate" FileETag MTime Size Header set X-Powered-By "W3 Total Cache/0.9.1.3" Header set Pragma "public" Header set Cache-Control "public, must-revalidate, proxy-revalidate" FileETag MTime Size Header set X-Powered-By "W3 Total Cache/0.9.1.3" # Security # Turn off mod_security filtering if using Google SEO plugin. SecFilterEngine On # The below probably isn't needed, but better safe than sorry. SecFilterScanPOST On