[🔴LIVE] How to prevent other websites from direct linking to files?

Published: 14 January 2021
on channel: Red Server Host
215
2

Today in this video you will learn about how to prevent other websites from direct linking to files

So friends let me tell you that there is a feature called Hotlink Protection in your cpanel which can help you in prevent other website from direct linking.

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:
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
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]

-----------------------------------------------------------------------------------------------------------
Hope you enjoyed the video..thanks for watching!!!
For more information, kindly follow us on social media like Twitter and Facebook and for video tutorials, subscribe to our YouTube channel -   / redserverhost.com  

Facebook Page-   / redserverhost  
Twitter Page-   / redserverhost.com  
Official Website- https://redserverhost.com

If you have any suggestions or problems related to this video, please let us know via the comment section below.


Watch video [🔴LIVE] How to prevent other websites from direct linking to files? online without registration, duration hours minute second in high quality. This video was added by user Red Server Host 14 January 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 215 once and liked it 2 people.