• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

Prevent other websites from leech image link from your Hosting

AnonyViet by AnonyViet
January 28, 2023
in Network
0

Your website hosts and uses a lot of images in articles. And some other websites copy articles from your website, using the link (hot link) of the photos. This costs you a lot of monthly bandwidth, and limits the speed of your website. So how to prevent this “leech link”?. There are many ways to block the link in the above case: you can use the .htacess file or reconfigure the httpd.conf file by adding the following lines of code.

Join the channel Telegram of the AnonyViet 👉 Link 👈

(Learn what .htaccess is, some basic htaccess commands see here)

Note: Apache Mod Rewrite needs to be enabled.
You proceed to open the httpd.conf file or .htaccess file on the server/hosting.

SetEnvIfNoCase Referer "^https://anonyviet.com/" banimages=1
SetEnvIfNoCase Referer "^https://anonyviet.com/" banimages=1
SetEnvIfNoCase Referer "^$" banimages=1
  Order Allow,Deny
  Allow from env=banimages=1

or you can also use another simple piece of code:

Tips: Usually, for promotional purposes, in addition to preventing “leech link” of photos from your hosting. You can convert the “leech” image to an image of your choice (like your site’s logo, banner, for example).
To do this, use the following code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?anonyviet.com/.*$ [NC]
RewriteRule .*.(gif|jpe?g|png)$ http://www.anonyviet.com/logo.jpg [R,NC,L]

In the example code above, I use the link as the domain name of my blog. Please change with the domain name of your website!

If you add the above content to the httpd.conf file, you need to restart apache (editing the .htaccess file is not necessary)

The article achieved: 5/5 – (100 votes)

Tags: HostingimageleechlinkpreventWebsites
Previous Post

Instructions for Hack Password to extract RAR files without software

Next Post

How to Sub subtitles automatically inserted into Video with Capcut

AnonyViet

AnonyViet

Related Posts

Save image as Type contains malicious code: Remove immediately before losing money unfairly!
Network

Save image as Type contains malicious code: Remove immediately before losing money unfairly!

March 19, 2026
Instructions on how to register a .co.uk domain name for free for 1 year
Network

Instructions on how to register a .co.uk domain name for free for 1 year

March 12, 2026
How to Setup Paperclip AI: Create a Company for AI Agent
Network

How to Setup Paperclip AI: Create a Company for AI Agent

March 12, 2026
Compilation of free and cheap APIs to run OpenClaw stably
Network

Compilation of free and cheap APIs to run OpenClaw stably

March 10, 2026
3 Services to Determine IP Location for Website (IP Geolocation API)
Network

3 Services to Determine IP Location for Website (IP Geolocation API)

March 10, 2026
How to buy a .STORE domain name for 1 USD (2026): Detailed instructions from A–Z
Network

How to buy a .STORE domain name for 1 USD (2026): Detailed instructions from A–Z

March 3, 2026
Next Post
How to Sub subtitles automatically inserted into Video with Capcut

How to Sub subtitles automatically inserted into Video with Capcut

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Recent News

How to add Watermark to Google Docs to protect copyright

How to add Watermark to Google Docs to protect copyright

April 19, 2026
How to intercept traffic using Burp Suite to analyze HTTP/HTTPS

How to intercept traffic using Burp Suite to analyze HTTP/HTTPS

April 18, 2026
How to avoid Adblock detection on Youtube with 4 good tips

How to avoid Adblock detection on Youtube with 4 good tips

April 17, 2026
How to transfer ChatGPT data to Claude is extremely simple

How to transfer ChatGPT data to Claude is extremely simple

April 16, 2026
How to add Watermark to Google Docs to protect copyright

How to add Watermark to Google Docs to protect copyright

April 19, 2026
How to intercept traffic using Burp Suite to analyze HTTP/HTTPS

How to intercept traffic using Burp Suite to analyze HTTP/HTTPS

April 18, 2026
How to avoid Adblock detection on Youtube with 4 good tips

How to avoid Adblock detection on Youtube with 4 good tips

April 17, 2026
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

How to add Watermark to Google Docs to protect copyright

How to add Watermark to Google Docs to protect copyright

April 19, 2026
How to intercept traffic using Burp Suite to analyze HTTP/HTTPS

How to intercept traffic using Burp Suite to analyze HTTP/HTTPS

April 18, 2026
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply