• Tiếng ViệtTiếng Việt
Theo dõi
Lucid Gen
  • Digital Marketing
    • Email Marketing
    • Facebook
    • Google Ads
    • Zalo Marketing
  • Website
    • SEO
    • Website measurement
    • WordPress
  • Technology
    • Computer tips
    • Mobile
    • Utilities
  • Review
  • Marketing tools
No Result
View All Result
Lucid Gen
  • Digital Marketing
    • Email Marketing
    • Facebook
    • Google Ads
    • Zalo Marketing
  • Website
    • SEO
    • Website measurement
    • WordPress
  • Technology
    • Computer tips
    • Mobile
    • Utilities
  • Review
  • Marketing tools
No Result
View All Result
Lucid Gen
No Result
View All Result

Lucid Gen › Website › WordPress › Anti-copy website image with a simple code

Anti-copy website image with a simple code

Chống copy sao chép hình ảnh website bằng code đơn giản

Chống copy hình ảnh website bằng code đơn giản

9
SHARES
879
VIEWS
Chia sẻ bài viết lên Facebook

One fine day, you come across a website using a lot of images from your website, how do you feel. I understand that feeling and I know WordPress has many plugins that support copy and paste content and images. However, if you only want to prevent image copying, you do not need to use the plugin for a long time to update. You just need to use the anti-copy (copy) website image with Lucid Gen’s code.

Related posts

  • How to set up Wordfence Security Premium plugin
  • How to set up Contact Form 7 to connect to Google Sheet
  • How to insert Google Tag Manager code into every website
Table of contents
  1. Should not copy images on the web?
  2. Is this 100% protected against copying and downloading images
  3. How to prevent copying images on the website
    1. Insert anti-copy code code into website
    2. Bật Hotlink Protection trong cPanel
  4. Conclusion

Should not copy images on the web?

Why do I ask this question? Actually, if your website is the field of education and learning, you should not be against copying website images. Because the students, students who want to download to study or give presentations, they will give up your website. Or if your website is a beautiful image sharing site is also an example of the case should not be.

So that means, depending on the domain of the website and the website visitors, the behavior of using images a lot or not, we will consider.

Is this 100% protected against copying and downloading images

Similar to all other plugins, regardless of the size, the source (source code) will appear only, which is not 100%. This website’s image copy protection code functions like any other plugin.

  • Prevent right-click on the image (right-click).
  • Prevent images from dragging and dropping so they cannot be downloaded by dragging them to the computer screen.
  • Advantages over plugins: Even if thieves use the action to select all and paste on their website, our photos will not be displayed on their website. This way also helps to avoid wasting information and resources on your website.

How to prevent copying images on the website

Steps to prevent image copying on website:

Step 1: Insert anti-copy code on the website.

Step 2: Turn on Hotlink Protection in cPanel.

Insert anti-copy code code into website

Copy the code for the image below and then paste it in the website according to your instructions.

For WordPress

If you are using a plugin to insert code into WordPress such as Insert Headers And Footers then go to the plugin’s settings. Insert the above code in Footer, before the closing </body> tag.

Chèn code chống copy hình ảnh vào website bằng Insert Headers and Footers nếu đã có
Insert anti-copy code on website with Insert Headers and Footers if available

If you do not have a plugin like that, we will insert it directly into the web theme.

You go to Appearance > Edit interface . Select the correct theme that you are using, find the file named Theme Footer (footer.php) to fix.

You can insert </body> beforehand. Like the picture below, my example.

Chèn code chống sao chép hình ảnh web trực tiếp vào theme đang sử dụng
Insert anti-copy code for web images directly into the theme you are using

For HTML and other source code

As principle as in WordPress, you should insert between <body> and </body>. If the website is static, open the html file and insert it.

Bật Hotlink Protection trong cPanel

This is an extra way to prevent copy-type images, embed images directly into their website using your original image link.

That is, your images are only displayed on your website. If left on another website or viewed by the direct link it will return an invalid 403 error.

You are entering cPanel and then navigate to Hotlink Protection.

chống copy sao chép hình ảnh website bằng code - Vào cPanel rồi tìm đến mục Hotlink Protection
Go to cPanel and navigate to Hotlink Protection

Here will list available domains in your hosting. You just need to click the Enable button.

chống copy sao chép hình ảnh website bằng code - Chỉ việc nhấp vào nút Enable
Just click the Enable button

That’s it, try opening the link of an image file in an anonymous browser window to check if 403 returns are returned. Because if opened in the current browser, the browser may still cache, so images are still displayed.

Như vậy là xong
That is done

Note: If your website uses cache for images, Hotlink Protection may not work as expected.

Conclusion

Doing 2 steps like that is to prevent copy of website image. No plugin needed. If you have a good way, please introduce comments below for your reference.

Share4Pin1Share1
Next Post
Công cụ nghiên cứu từ khóa Facebook Youtube hot nhất

The hottest Youtube and Facebook keyword research tools

Cách cài nhạc chuông iPhone không cần máy tính và iTunes

How to set an iPhone ringtone without a computer and iTunes

Cách tạo khung ảnh Shopee hàng loạt cực nhanh

How to create multiple Shopee photo frames in bulk

Leave a Reply Cancel reply

I will review and reply to all comments within the day. Please feel free to leave your comments on this article!

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

You will probably need it

Cách viết chữ in đậm trên Facebook và FB chat
Content marketing

How to write bold text on Facebook and FB Messenger

18/10/2020
0

How to write type on Facebook, write in bold, italic on Facebook, change the FB font on status. 100% of...

Read more

Recommended for you

How to add a Google Ads payment using MoMo and Visa card

18/10/2020

How to delete all posts on Facebook fanpage

18/10/2020

Two best ways to emulate Windows on macOS

18/10/2020

Compare the difference between B2B and B2C markets

18/10/2020

How to take a screenshot on a MacBook professionally

18/10/2020

Lucid Gen

Một blog chia sẻ về digital marketing, linh tinh về công nghệ và những gì có thể bạn cần mà tác giả biết.

Phát triển bởi một người thích viết blog
Trần Ngọc Minh Hiếu

Thống kê thời gian thực đã có 63 Bài viết và 1,939 Bình luận

Tiết lộ: Website này đã có quảng cáo. Không có tiền thì viết làm sao.

Recent Comments

  • Minh Hiếu on How to merge multiple Excel and CSV files into 1 sheet
  • Nguyenthoa on How to merge multiple Excel and CSV files into 1 sheet
  • Minh Hiếu on How to merge multiple Excel and CSV files into 1 sheet
  • Nguyenthoa on How to merge multiple Excel and CSV files into 1 sheet
  • Minh Hiếu on How to hide all files and icons on the Mac desktop

Image sources

Lucid Gen edits images from the following sources: Freepik, Unsplash & Pixabay.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

  • About
  • Contact
  • Terms and policies

© 2019 Lucid Gen with by Minh Hieu DMCA Protected

No Result
View All Result
  • Digital Marketing
    • Email Marketing
    • Facebook
    • Google Ads
    • Zalo Marketing
  • Website
    • SEO
    • Website measurement
    • WordPress
  • Technology
    • Computer tips
    • Mobile
    • Utilities
  • Review
  • Marketing tools

© 2019 Lucid Gen with by Minh Hieu DMCA Protected