One beautiful day you accidentally met a website using a lot of pictures from your website, how you feel. I understand that feeling and I know WordPress has many plugins that support anti-copying of content and images. However, if you just want to prevent copying images, there is no need to use the plugin for a long time to update. You just need to use anti-copy (copy) website images using Lucid Gen code.
Should we fight copying images on the web
Why are we asking this question? In fact, if your website is in the field of education and learning, it should not be anti-copying website images. Because students want to download to study or to give presentations, they will abandon 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 field of the website and the object of visiting the website, whether or not the image is used much that we will consider.
Is this 100% anti-copy and image loading
Like all plugins, the source is not 100% available. This website image protection code functions like other plugins.
- Right click.
- Prevent dragging and dropping photos so they can't be downloaded by dragging them off your computer screen.
- Advantages over plugins: Even if thieves use the operation to select all paste on their website, our photos are not displayed on their website. This also helps to prevent losses by using your website resources.
How to prevent image copying on website
Steps to prevent copying images on the website:
Step 1: Insert the anti-copy code into the website.
Step 2: Turn on Hotlink Protection in cPanel.
Insert anti-copy code into website
You copy the code against copying the image below and paste it into the website according to your instructions.
If you're using a plugin that inserts code into WordPress such as Insert Headers And Footers, then you're into that plugin's settings. Insert the above code into the Footer, which is before the card closes.
If you don't have a plugin like that, we'll insert it straight into the web theme.
You go to Interface > Edit the interface. Select the right interface you're using, find a file called a footer (footer.php) to edit.
You can insert it first. It's like the picture below me.
For HTML and other source code
The same principle as WordPress, you insert in the middle <body> And </body> It's okay. If the website is static, you open the html file and insert it.
Turn on Hotlink Protection in cPanel
This is an additional way to prevent images from being embedded directly into their website with your original image link.
That is, your image is only visible on your website. If left on another website or viewed by direct link it will return an error of 403 not allowed access.
You're typing in cPanel, and then go to hotlink protection.
Here will list the domain names listed in your hosting. You can just click the Enable button.
That's it, try to open a photo file link on an anonymous browser window to check if you return 403. Because if you open with the current browser, the browser may still cache, so it still displays photos.
Note: If your website uses cache for images, hotlink protection may not be as effective as expected.
Two steps like that is to prevent copying website images. There's no need to use plugins. If you have a good way, please refer below to the comments for your reference.