• Login
en
afsqam ar hy az eu be bn bs bg ca ceb ny zh-CN zh-TWco hr cs da nl en eo et tl fi fr fy gl ka de el gu ht ha haw iw hi hmn hu is ig id ga it ja jw kn kk km ko ku ky lo la lv lt lb mk mg ms ml mt mi mr mn my ne no ps fa pl pt pa ro ru sm gd sr st sn sd si sk sl so es su sw sv tg ta te th tr uk ur uz vi cy xh yi yo zu
Victor Mochere
No Result
View All Result
  • Business
  • Finance
  • Education
  • Travel
  • Technology
  • Living
  • Entertainment
  • Governance
  • Sports
en
afsqam ar hy az eu be bn bs bg ca ceb ny zh-CN zh-TWco hr cs da nl en eo et tl fi fr fy gl ka de el gu ht ha haw iw hi hmn hu is ig id ga it ja jw kn kk km ko ku ky lo la lv lt lb mk mg ms ml mt mi mr mn my ne no ps fa pl pt pa ro ru sm gd sr st sn sd si sk sl so es su sw sv tg ta te th tr uk ur uz vi cy xh yi yo zu
Victor Mochere
No Result
View All Result
en
afsqam ar hy az eu be bn bs bg ca ceb ny zh-CN zh-TWco hr cs da nl en eo et tl fi fr fy gl ka de el gu ht ha haw iw hi hmn hu is ig id ga it ja jw kn kk km ko ku ky lo la lv lt lb mk mg ms ml mt mi mr mn my ne no ps fa pl pt pa ro ru sm gd sr st sn sd si sk sl so es su sw sv tg ta te th tr uk ur uz vi cy xh yi yo zu
Victor Mochere
No Result
View All Result
Home Passé

How to enable hotlink protection

Victor Mochere by Victor Mochere
in Passé, Technology
Reading Time: 3 mins read
A A
0
How to enable hotlink protection

A hotlink occurs when someone is directly linking content from your site to another site and uses your bandwidth to serve the files. For example, when someone is displaying an image hosted on your server on their own web pages. You can use this hotlink protection security feature in cPanel in order to prevent this from happening.

How to enable hotlink protection in cPanel

To enable hotlink protection in cPanel, follow the steps below.

  1. Log into cPanel.
  2. Look for the “Security” section and click on “Hotlink Protection” icon.
  3. Click “Enable”. A new page will open that displays the “Allowed referrers” and “Protected extension” lists.
  4. Click “Go back”.
  5. To allow specific sites to hotlink to your website, add their URLs in the “URLs to allow access” menu.
  6. To block direct access to files of specific types, add those file extensions to the “Block direct access for the following extensions” text box.
  7. For example, to block all .jpg images, add .jpg to the “Block direct access for the following extensions” text box.
  8. When you block these file types, others cannot hotlink those types of files from your website regardless of any other settings.
  9. To allow visitors access to specific content through the URL, select the “Allow direct requests” checkbox.
  10. For example, if you enable this option, a visitor could enter http://www.example.com/folder/example.jpg as a URL to access the example.jpg file.
  11. To redirect requests for certain content, enter the URL to which you want to redirect your visitor in the “Redirect the request to the following URL” text box.
  12. Click “Submit”.

To disable hotlink protection, click “Disable”. When you disable hotlink protection, the system deletes the entries in the list the URLs to which you wish to allow access list. We strongly recommend that you save the list locally before you disable hotlink protection.

RelatedPosts

How to build a hospital management software system

How hospital management systems improve efficiency in healthcare delivery

How to remove watermarks from ChatGPT text

Things to know about Starlink satellite internet

How to enable hotlink protection in .htaccess

If you are not using cPanel on your server, you can still enable hotlink protection easily through the .htaccess file. You’ll just have to use the following code snippet.

RewriteEngine on
# Remove the following line if you want to block blank referrer too
RewriteCond %{HTTP_REFERER} !^$

RewriteCond %{HTTP_REFERER} !^https?://(.+\.)?example.com [NC]
RewriteRule \.(jpg|jpeg|png|gif|bmp)$ - [NC,F,L]

If you want to display a “blocked” image in place of the “hotlinked” image, replace the last rule with.

RewriteRule \.(jpg|jpeg|png|gif|bmp) https://example.com/blocked.png [R,L]
Tags: Website
Previous Post

How to block an IP address on cPanel

Next Post

How to install WordPress on cPanel

Victor Mochere

Victor Mochere

Blogger, internet personality, and netpreneur creating and marketing digital content.

Related Posts

How to get rid of annoying ads on your phone
Passé

How to get rid of annoying ads on your phone

Top 20 most valuable football players in the world
Passé

Top 20 most valuable football players in the world 2025

Best quotes from Justin Bieber
Entertainment

Best quotes from Justin Bieber

How to grow your followers on social media networks
Passé

How to grow your followers on social media networks

Why silver is the best for kitchen utensils
Living

Why silver is the best for kitchen utensils

British passport Visa Free countries
Passé

British passport Visa Free countries 2025

Next Post
How to install WordPress on cPanel

How to install WordPress on cPanel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Terms & Conditions and Privacy Policy.

Trending articles

  • Why hemp oil is good for dogs

    Why hemp oil is good for dogs

    1 shares
    Share 0 Tweet 0
  • How to escape from a sinking car

    0 shares
    Share 0 Tweet 0
  • It’s my birthday, but who cares

    1 shares
    Share 0 Tweet 0
  • African countries and their current presidents 2025

    1 shares
    Share 0 Tweet 0
  • A birthday and beyond

    1 shares
    Share 0 Tweet 0

Latest articles

The 20 largest floral tributes of all time
Living

The 20 largest floral tributes of all time

by Victor Mochere
0

Floral tributes have long served as a universal language of mourning, reverence, and collective memory. Yet, on rare occasions, grief...

Read moreDetails
How to build a hospital management software system

How to build a hospital management software system

How hospital management systems improve efficiency in healthcare delivery

How hospital management systems improve efficiency in healthcare delivery

Top 20 best defended countries in the world

Top 20 best defended countries in the world

How powerful is the Catholic Church?

How powerful is the Catholic Church?

Recommended articles

How to buy SGR (Makadara Express) tickets
Passé

How to buy SGR (Makadara Express) tickets

by Victor Mochere
1

The Standard Gauge Railway (SGR) connects the large Indian Ocean city of Mombasa with Nairobi, the country's capital and largest...

Read moreDetails

Comoran passport Visa Free countries 2025

Johnson Sakaja Net Worth 2025

How virtual reality has reinvented the automotive industry

Types of leadership styles

Victor Mochere

Victor Mochere is one of the biggest informational blogs on the web. We publish well curated up-to-date facts and important updates from around the world.

Sections

  • Business
  • Education
  • Entertainment
  • Finance
  • Flacked
  • Governance
  • Living
  • Passé
  • Sports
  • Technology
  • Travel

Follow us

  • Advertise
  • Disclaimer
  • Cookies
  • Privacy Policy
  • Copyright
  • DMCA
  • Guest blogger
  • Blog tip
  • Contact us

© 2025 Victor Mochere. All rights reserved.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
[gtranslate]
No Result
View All Result
  • Login
  • Sections
    • Business
    • Finance
    • Education
    • Travel
    • Technology
    • Living
    • Entertainment
    • Governance
    • Sports
  • About us
  • Victor Mochere Biography
  • Sitemap
  • Social Media Policy
  • Corrections
  • Comment Policy

© 2025 Victor Mochere. All rights reserved.

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Cookie Policy.