How-To prevent people from stealing your files & bandwidth (hotlink)

If you find that people are stealing your files or using your bandwidth tehn you can prevent this with a Hotlink. A hotlink is a direct link that embeds a file (such as an image or video) from your site into another website. When other sites embeds your files, they are using your bandwidth to serve those files. DirectAdmin allows you to prevent hotlinks to your site by using the .htaccess file.

 

Create an .htaccess file in your public_html directory with the following code:

Make sure to replace domain.com with your actual domain name.

 

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com.*$ [NC]
RewriteRule .(gif|jpg)$ - [F]

 

 

Was this answer helpful?

 Print this Article

Also Read

Does your PHP installation include IonCube loaders?

Yes, these loaders are available with our PHP installations on all our servers.

I cant connect to Canada Post sellonline.canadapost.ca

If you are setting up a Shipping account for Canada Post in your Shopping Cart and you are...

Running Scripts

If you are having troubles with Perl CGI or PHP scripts please read the following...

What is the correct path for my Joomla logs ?

In the Global configurations under system you need to specify the full path to your log...

What are the DNS (Nameservers) for Bluebird?

Bluebird Hosting uses standard Name Servers (DNS) for all our hosting accounts. Our DNS for all...

Powered by WHMCompleteSolution