'No snowflake in an avalanche ever feels responsible.' -Voltaire

9 Things to do with HTACCESS

by Ethan Glover, Fri, Jun 05, 2015 - (Edited) Sun, Nov 20, 2016

The HTACCESS file is an often underused but very powerful file that you can use to give your website server basic instructions to improve SEO, point people to the right versions of pages, and even prevent spam.

These are 9 ways you can use HTACCESS to improve your website quality.

  1. Default Character Set - This basic specification will tell the browser which character set to load so it can display proper symbols and characters. While this isn't a big issue, and probably doesn't affect most people, it's still good to throw it in, just in case you decide to do something crazy later down the line.
    AddDefaultCharset UTF-8
  2. Specify Default Language - In the same vain as setting a character set, setting your default language is a great way to let browsers (and search engine spiders) know what language your website is in so that they may better process and categorize your website.
    DefaultLanguage en-US
  3. Specify Server Timezone - When generating sitemap files, or using "published_time" and "modified_time" in Schema markup, having the timezone correct is very important. Without it, data pulled from your site can be different according to where it appears and when. Setting your server time is a basic element that can save a lot of headaches.
    SetEnv TZ America/Indianapolis
  4. Force HTTPS and No www - There have been a lot of questions revolving around http v. https and www v. non-www versions of websites. Having all of them can create duplicate content issues and canonicalizing can create a massively difficult task. That's why it's easier to just redirect all requests to a secure version of your site without the www.
    RewriteEngine On 
    RewriteCond %{HTTP_HOST} ^(www\.)(.+) [OR]
    RewriteCond %{HTTPS} off
    RewriteCond %{HTTP_HOST} ^(www\.)?(.+)
    RewriteRule ^ https://%2%{REQUEST_URI} [R=301,L]
  5. Set Cache Control Headers - A major part of improving site performance is setting cache control headers in order to reduce bandwidth used by visitors. Instead of loading everything on your site every time they visit, save those resources to their cache to make sure things run faster on their next visit. Cache images for a year, scripts for a week, and pages for a day.
    <IfModule mod_headers.c>
    # YEAR
    <FilesMatch ".(ico|gif|jpg|jpeg|png|flv|pdf|swf)$">
     Header set Cache-Control "max-age=29030400"
    </FilesMatch>
    # WEEK
    <FilesMatch ".(js|css|swf)$">
     Header set Cache-Control "max-age=604800"
    </FilesMatch>
    # 24 HOURS
    <FilesMatch ".(html|htm|txt|php)$">
     Header set Cache-Control "max-age=86400"
    </FilesMatch>
    </IfModule>
  6. Enable GZIP Compression - GZIP is an easy to implement type of compression that can reduce page size by up to 90%. (I've seen 100% on my own site.) There's no reason not to implement it considering it's only a few pieces of code you have to paste to your htaccess file.
    <ifModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler ^cgi-script$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^application/x-javascript.*
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    </ifModule>
  7. Configure Error Pages - If someone visits the wrong page on your site and ends up with a 404 Error, don't send them to your domain provider default. They're always ugly and completely irrelevant to your own site. Instead, create your own error pages and redirect users to them when they receive an error via HTACCESS.
    ErrorDocument 404 /404page.php
    ErrorDocument 401 /401page.php
    ErrorDocument 403 /401page.php
  8. Redirect Bad URLs - If you've moved some things around on your site, there may be some broken links out there on other people's sites pointing to yours. When you find these either through Google Analytics or another tool, use the following method to do a simple redirect in order to avoid 404 errors.
    Redirect 301 /bad-url-1/ http://ethanglover.biz/redirect-1/
    Redirect 301 /bad-url-2/  http://ethanglover.biz/redirect-2/
  9. Block Spam Referrers - This one may be my favorite. In Google Analytics I often get "referrals" from spam websites like free-social-buttons.com. Instead of simply filtering out those results, I've setup redirects so that when those sites link to mine, the links are blocked completely and serve a 500 error. Piwik offers an extensive list spam referrers. HTACCESS tools offers a spam referrer code generator to make this process easy. (Note that 'RewriteEngine on' doesn't appear here, make sure it appears once in your htaccess file but no more.)
    RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?7makemoneyonline.com.*$ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?free-social-buttons.com.*$ [NC,OR]
    RewriteRule .* - [F,L]
  10. For some extra fun, I decided to mess with a website with fraudulent and dubious claims about me. Anytime it tries to link to mine, no matter what link it points to, I redirect it to a page proving the fraud. This trick proves the flexible power of HTACCESS.
    RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?christophercantwell.com.*$ [NC]
    RewriteRule ^ https://ethanglover.biz/politics/chris-cantwell/ [R=301,L]

For reference, you can see my entire HTACCESS file here:

## Default Character Set ##
AddDefaultCharset UTF-8
## Default Language ##
DefaultLanguage en-US
## Set Server Timezone ##
SetEnv TZ America/Indianapolis
 
## HTTPS ##
RewriteEngine On 
RewriteCond %{HTTP_HOST} ^(www\.)(.+) [OR]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(www\.)?(.+)
RewriteRule ^ https://%2%{REQUEST_URI} [R=301,L]
## End HTTPS ##

## CACHING ##
AddType image/x-icon .ico

<IfModule mod_headers.c>
# YEAR
<FilesMatch ".(ico|gif|jpg|jpeg|png|flv|pdf|swf)$">
 Header set Cache-Control "max-age=29030400"
</FilesMatch>
# WEEK
<FilesMatch ".(js|css|swf)$">
 Header set Cache-Control "max-age=604800"
</FilesMatch>
# 24 HOURS
<FilesMatch ".(html|htm|txt|php)$">
 Header set Cache-Control "max-age=86400"
</FilesMatch>
</IfModule>

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif A29030400
ExpiresByType image/png A29030400
ExpiresByType image/jpeg A29030400
ExpiresByType image/x-icon A29030400
ExpiresByType application/pdf A29030400
ExpiresByType application/x-javascript A604800
ExpiresByType text/plain A86400
ExpiresByType text/css A604800
</IfModule>
## END CACHING ##

## GZIP ##

mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*

## END GZIP ##

## Google Pagespeed Module Configuration ##
ModPagespeedEnableFilters make_google_analytics_async
ModPagespeedEnableFilters canonicalize_javascript_libraries
ModPagespeedEnableFilters collapse_whitespace
ModPagespeedEnableFilters combine_css
ModPagespeedEnableFilters combine_javascript
ModPagespeedEnableFilters inline_css
ModPagespeedEnableFilters inline_google_font_css
ModPagespeedEnableFilters inline_javascript
ModPagespeedEnableFilters lazyload_images
ModPagespeedEnableFilters rewrite_javascript
ModPagespeedEnableFilters move_css_above_scripts
ModPagespeedEnableFilters rewrite_images
ModPagespeedEnableFilters insert_dns_prefetch
ModPagespeedEnableFilters prioritize_critical_css
ModPagespeedEnableFilters rewrite_css,sprite_images
ModPagespeedEnableFilters trim_urls
## End Pagespeed Module ##

## Error Pages ##
ErrorDocument 404 /404page.php
ErrorDocument 401 /401page.php
ErrorDocument 403 /401page.php
## End Error Pages ##

## Redirects ##
Redirect 301 /can-wrong-tld-hurt-seo/ http://ethanglover.biz/blog/can-wrong-tld-hurt-seo.php
Redirect 301 /blog/how-to-display-code-on-site.php http://ethanglover.biz/blog/display-code-website.php
Redirect 301 /blog/lrd-update-4.php http://ethanglover.biz/
Redirect 301 /blog/how-to-display-math-equations.php http://ethanglover.biz/blog/display-math-equations-website.php
Redirect 301 /blog/how-to-create-static-header-footer.php http://ethanglover.biz/blog/create-static-header-footer.php
Redirect 301 /blog/soylent-day1.php http://ethanglover.biz/blog/soylent-day-1-first-taste.php
Redirect 301 /docs/resume.php http://ethanglover.biz/blog/resume.php
Redirect 301 /wp-content/uploads/2014/12/Ethan_Glover_Resume.docx http://ethanglover.biz/blog/resume.php
Redirect 301 /create-static-header-footer/ http://ethanglover.biz/blog/create-static-header-footer.php
Redirect 301 /liberty-scam/ http://ethanglover.biz/blog/liberty-scam.php
Redirect 301 /personally-dislike-facebook/ http://ethanglover.biz/blog/personally-dislike-facebook.php
Redirect 301 /resume/ http://ethanglover.biz/blog/resume.php
Redirect 301 /robots-txt/ http://ethanglover.biz/blog/using-robots-txt-with-addon-domains.php
Redirect 301 /ten-cool-sites-12/ http://ethanglover.biz/
Redirect 301 /blog/do-spoilers-matter.php http://ethanglover.biz/blog/spoilers-matter.php
Redirect 301 /blog/i-technology.php http://ethanglover.biz/blog/technology.php
Redirect 301 /blog/lrd-update-3.php http://ethanglover.biz/
Redirect 301 /blog/time-angles.php http://ethanglover.biz/
Redirect 301 /blog/potd-bank-password.php http://ethanglover.biz/
Redirect 301 /how-to-build-real-quality-backlinks/ http://ethanglover.biz/blog/how-to-build-real-quality-backlinks.php
Redirect 301 /apple-lawsuit-plaintiffs-tough-lesson/ http://ethanglover.biz/blog/apple-lawsuit-plaintiffs-tough-lesson.php
Redirect 301 /write-blog/ http://ethanglover.biz/blog/write-blog.php
Redirect 301 /the-power-of-a-story/ http://ethanglover.biz/
Redirect 301 /ten-cool-sites-10/ http://ethanglover.biz/
Redirect 301 /display-code-website/ http://ethanglover.biz/blog/display-code-website.php
Redirect 301 /cdn-cgi/cl/ http://ethanglover.biz/
Redirect 301 /sorting-algorithms/ http://ethanglover.biz/blog/sorting-algorithms.php
Redirect 301 /using-robots-txt-with-addon-domains/ http://ethanglover.biz/blog/using-robots-txt-with-addon-domains.php
Redirect 301 /terms-of-service/ http://ethanglover.biz/
Redirect 301 /sitemap/ http://ethanglover.biz/blog/sitemap.php
Redirect 301 /page/2/ http://ethanglover.biz/blog/sitemap.php
Redirect 301 /privacy-policy/ http://ethanglover.biz/
Redirect 301 /race-track-assistant/ http://ethanglover.biz/blog/race-track-assistant.php
Redirect 301 /link-building-is-unnatural/ http://ethanglover.biz/blog/link-building-is-unnatural.php
Redirect 301 /soylent-side-effects/ http://ethanglover.biz/blog/soylent-side-effects.php
Redirect 301 /home/ http://ethanglover.biz/
Redirect 301 /finding-fibonaccis-using-strassen-algorithm/ http://ethanglover.biz/blog/finding-fibonaccis-using-strassen-algorithm.php
Redirect 301 /tips-social-sharing/ http://ethanglover.biz/blog/tips-social-sharing.php
Redirect 301 /top-level-domains/ http://ethanglover.biz/blog/can-wrong-tld-hurt-seo.php
Redirect 301 /liberty-resource-directory-update/ http://ethanglover.biz/
Redirect 301 /signal-systems-support-specialist/ http://ethanglover.biz/blog/signal-systems-support-specialist.php
## End Redirects ##

## Redirect All Traffic from Cantwell ##
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?christophercantwell.com.*$ [NC]
RewriteRule ^ https://ethanglover.biz/politics/chris-cantwell/ [R=301,L]
## End Redirect All Traffic from Cantwell ##

## Blocked Referrers ##
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?100dollars-seo.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?12masterov.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?4webmasters.org.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?7makemoneyonline.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?acads.net.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?adcash.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?adspart.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?adventureparkcostarica.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?adviceforum.info.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?affordablewebsitesandmobileapps.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?akuhni.by.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?allwomen.info.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?alpharma.net.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?altermix.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?amt-k.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?anal-acrobats.hol.es.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?android-style.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?anticrawler.org.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?arkkivoltti.net.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?aruplighting.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?baixar-musicas-gratis.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?baladur.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?balitouroffice.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?bard-real.com.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?best-seo-offer.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?best-seo-solution.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?bestmobilityscooterstoday.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?bestwebsitesawards.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?billiard-classic.com.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?blackhatworth.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?blue-square.biz.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?bmw.afora.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?brakehawk.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?break-the-chains.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?brothers-smaller.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?buttons-for-website.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?buttons-for-your-website.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?buy-cheap-online.info.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?buy-forum.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?cardiosport.com.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?cartechnic.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?cenokos.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?cenoval.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?cezartabac.ro.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ci.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?cityadspix.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?civilwartheater.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?coderstate.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?connectikastudio.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?cubook.supernew.org.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?customsua.com.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?dailyrank.net.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?darodar.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?delfin-aqua.com.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?demenageur.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?descargar-musica-gratis.net.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?detskie-konstruktory.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?dipstar.org.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?djekxa.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?dojki-hd.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?domination.ml.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?doska-vsem.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?dostavka-v-krym.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?drupa.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?dvr.biz.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?e-kwiaciarz.pl.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ecomp3.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?econom.co.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?edakgfvwql.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?egovaleo.it.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ekto.ee.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?elmifarhangi.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?este-line.com.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?euromasterclass.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?europages.com.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?eurosamodelki.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?event-tracking.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?forum20.smailik.org.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?forum69.info.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?free-share-buttons.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?free-social-buttons.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?freewhatsappload.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?generalporn.org.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?germes-trans.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?get-free-traffic-now.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ghazel.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?girlporn.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?gkvector.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?gobongo.info.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?goodprotein.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?googlsucks.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?guardlink.org.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?hulfingtonpost.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?humanorightswatch.org.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?hundejo.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?hvd-store.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ico.re.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?igru-xbox.net.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?iloveitaly.ro.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?iloveitaly.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ilovevitaly.co.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ilovevitaly.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ilovevitaly.info.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ilovevitaly.org.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ilovevitaly.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?iminent.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?imperiafilm.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?iskalko.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ispaniya-costa-blanca.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?it-max.com.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?jjbabskoe.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?kabbalah-red-bracelets.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?kambasoft.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?kazrent.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?kino-fun.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?kino-key.info.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?kinopolet.net.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?laxdrills.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?littleberry.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?livefixer.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?luxup.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?makemoneyonline.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?maridan.com.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?masterseek.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?mebelcomplekt.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?mebeldekor.com.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?med-zdorovie.com.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?minegam.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?mirobuvi.com.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?msk.afora.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?myftpupload.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?niki-mlt.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?novosti-hi-tech.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?o-o-6-o-o.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?o-o-8-o-o.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ok.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?onlywoman.org.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ooo-olni.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ozas.net.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?palvira.com.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?photokitchendesign.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?pornhub-forum.ga.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?pornhub-forum.uni.me.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?pornhub-ru.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?pornoforadult.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?pozdravleniya-c.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?priceg.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?prodvigator.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?psa48.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?qitt.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ranksonic.info.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ranksonic.org.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?rapidgator-porn.ga.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?research.ifmo.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?resellerclub.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?rightenergysolutions.com.au.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?sady-urala.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?sanjosestartups.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?savetubevideo.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?screentoolkit.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?search-error.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?semalt.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?semaltmedia.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?seo-smm.kz.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?seoexperimenty.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?seopub.net.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?sexyteens.hol.es.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?sharebutton.net.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?shop.xz618.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?simple-share-buttons.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?slftsdybbg.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?slkrm.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?soaksoak.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?social-buttons.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?socialseet.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?sohoindia.net.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?spb.afora.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?spravka130.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?superiends.org.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?tattooha.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?tedxrj.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?theguardlan.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?toyota.7zap.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?trafficmonetize.org.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?trion.od.ua.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?uzungil.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?videos-for-your-business.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?vodkoved.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?webmaster-traffic.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?webmonetizer.net.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?websites-reviews.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?websocial.me.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?wmasterlead.com.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?ykecwqlixx.ru.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?youporn-forum.ga.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?youporn-forum.uni.me.*$ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?zastroyka.org.*$ [NC,OR]
RewriteRule .* - [F,L]
## End Blocked Referrers ##