HOW TO PREVENT OTHER WEBSITES FROM DIRECT LINKING TO FILES IN CPANEL? [STEP BY STEP]☑️
Today in this tutorial you will learn how to prevent other websites form direct linking to files in your website. So let us watch out this video to learn how to prevent other websites form direct linking to files via Hotlink Protection in cPanel. Take care of every step so that you don’t miss anything.
Now let us know what is Hotlink Protection?
A Hotlink is a link to a media file on your site from another website. The owner of the third party site decides to link directly to you instead of hosting that content themselves. The most common example is an image file embedded on a web page but hosted by another person. Every time someone visits their page, your server feeds the file to them, using up your bandwidth allowance.
Hotlink protection in cPanel is just an extra feature that allows you to protect bandwidth by disallowing other third party URL/Domain from linking contents fetched from your server.
Follow the steps given below to enable Hotlink protection in cPanel:
Step::1 Login to your cPanel

Step::2 Scroll down to Security section and click on Hotlink Protection

Step::3 Now just click on Enable button to enable this function

Congratulations!!!Hotlink Protection enabled!!!
However there is one more method to apply hotlink Protection via .htaccess
You just have to write a code in your .htaccess file inside public_html
----------------------------------------------------------------------------------------------------------- #Stop Image Hotlinking RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !google. [NC] RewriteCond %{HTTP_REFERER} !search?q=cache [NC] RewriteCond %{HTTP_REFERER} !msn. [NC] RewriteCond %{HTTP_REFERER} !yahoo. [NC] RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpe [L] -----------------------------------------------------------------------------------------------------------
If you enjoyed this tutorial, please consider following us on Facebook and Twitter.
Facebook Page- https://facebook.com/redserverhost
Twitter Page– https://twitter.com/redserverhost.com
If you have any query, feel free to let us know via the comments section below. Take care of every step so that you don’t miss anything.
Thanks for Reading!!!
Tags: cheap linux hosting, buy linux hosting, cheap reseller hosting, buy reseller hosting, best reseller hosting, cheap web hosting, cheapest web hosting, cheapest reseller hosting, cheap reseller host, cheap linux host, cheapest linux hosting, best linux hosting, best web hosting