My Frugal Tech

  • Home
  • About
  • Services
  • Contact

Enable Hotlink Protection for Specific Sites

August 22, 2011 by Mitchell Wischmann

If you read my previous post on hotlinking, you may be wondering how you can block these offending sites. Often, enabling hotlink protection will break your newsletters and feeds, so I recommend blocking individual sites.

To block specific sites:

  1. Open up your cPanel and visit the File Manager once again. This time, select Web Root in the pop up box. Also, check the "Show Hidden Files (dotfiles)" box.
  2. Web Root FTP
  3. Select the .htaccess file and click Edit. Click Edit again in the pop up box.
  4. Insert the following code at the very top of the file. Replace the domain as necessary. For example, if google.com were hotlinking your image, enter google.com
  5. # Hotlink Protection
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} ^http://domainhere.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://(.+\.)?domainhere\.com/ [NC]
    RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]
  6. Repeat for other offending domains and save the file.

Don't know how to find out if your images are being hotlinked? You can find out through a simple AWStats hack.

Filed Under: htaccess

Testimonials

Jennie Leanne

Mitchell is simply AMAZING to work with. He understands exactly what I do and exactly what I need which has saved many hours of my time since I’ve started working with him.

Jennie Leanne
Bargain Blessings

Andrea Deckard

My Frugal Tech consistently delivers timely support and results while creating custom requests that are exactly what I envisioned in my head. Mitchell always acts in the most professional way with his customers’ needs remaining as the priority at all times. He is one of a select few that I trust to provide technical support for my websites.

Andrea Deckard
Savings Lifestyle

Melissa Buckles

I can not say enough good things about My Frugal Tech. I have been impressed with his service and delivery. He made all the changes to my website that I requested quickly and right to my specifications. I give My Frugal Tech two big thumbs up!

Melissa Buckles
Everyday Savvy

Melissa Garcia

Mitchell is amazing and very talented. I know I can trust Mitchell with my personal information and he is very quick to respond. He is very affordable and he gets the job done. I go to him for all my technical needs.

Melissa Garcia
Consumer Queen

Angie Schuckenbrock

I highly recommend My Frugal Tech! I have requested Mitchell’s services multiple times and I am always extremely pleased with his work. Not only do I feel completely safe allowing him access to my site, but he works quickly and exactly to my specifications. Mitchell definitely knows his stuff and his prices are amazing!!

Angie Schuckenbrock
Frugal 4 Four

Dana Zeliff

My Frugal Tech has helped me with an array of tasks to keep my website running smoothly. The professional service provided to customers is quick and efficient with competitive rates. I highly recommend My Frugal Tech for all your website development and maintenance needs!

Dana Zeliff
The Coupon Challenge

Kristie Sawicki

Thanks to the work Mitchell has done for my site I am able to put my focus on what I love most, and that’s writing. I can trust that whatever is broke he is more than able to fix it, and many times in very little time!

Kristie Sawicki
Saving Dollars and Sense

Copyright © 2025 My Frugal Tech. All Rights Reserved.