• 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

Script backup database and website on telegram
Network

Script backup database and website on telegram

May 2, 2025
Create 64GB RAM 16 core for free on Google IDX
Network

Create 64GB RAM 16 core for free on Google IDX

April 13, 2025
What is VPS running Vietnamese software? What is the reason for installing Vietnamese software on VPS?
Network

What is VPS running Vietnamese software? What is the reason for installing Vietnamese software on VPS?

February 17, 2025
Create Ronin wallet to play pixels on VPS Windows
Network

Create Ronin wallet to play pixels on VPS Windows

February 17, 2025
What is Proxy Gradient Network? Instructions for using Proxy to suspend multiple Gradient accounts
Network

What is Proxy Gradient Network? Instructions for using Proxy to suspend multiple Gradient accounts

December 26, 2024
How to buy a .news domain for free for 0 VND at Namecheap
Network

How to buy a .news domain for free for 0 VND at Namecheap

December 22, 2024
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

Guide to comment on the constitution amendment on VNEID

Guide to comment on the constitution amendment on VNEID

May 21, 2025
Tips to fix the file is open in another program

Tips to fix the file is open in another program

May 21, 2025
7 ways to release RAM to accelerate your Windows computer

7 ways to release RAM to accelerate your Windows computer

May 21, 2025
Discover Supermix – Smart playlist on YouTube Music

Discover Supermix – Smart playlist on YouTube Music

May 20, 2025
Guide to comment on the constitution amendment on VNEID

Guide to comment on the constitution amendment on VNEID

May 21, 2025
Tips to fix the file is open in another program

Tips to fix the file is open in another program

May 21, 2025
7 ways to release RAM to accelerate your Windows computer

7 ways to release RAM to accelerate your Windows computer

May 21, 2025
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

Guide to comment on the constitution amendment on VNEID

Guide to comment on the constitution amendment on VNEID

May 21, 2025
Tips to fix the file is open in another program

Tips to fix the file is open in another program

May 21, 2025
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

©2024 AnonyVietFor Knowledge kqxs hôm nay xem phim miễn phí SHBET bongdaso

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

©2024 AnonyVietFor Knowledge kqxs hôm nay xem phim miễn phí SHBET bongdaso