wordpress添加媒体_如何在WordPress图像上不添加任何右键单击
wordpress添加媒体
Do you want to stop users from stealing images on your WordPress site?
您是否要阻止用户窃取WordPress网站上的图像?
While there is no complete solution to prevent image theft on your website, there are some measures that you can take to make it a bit harder for users to save images from your website.
虽然没有完整的解决方案来防止网站上的图像被盗,但是您可以采取一些措施使用户更难从网站上保存图像。
One such solution is to add no right-click popup to your images. You can do that in WordPress by using plugins that disable right click and make it difficult to download images from your website.
一种这样的解决方案是不向图像添加右键单击弹出窗口。 您可以在WordPress中通过使用禁用右键单击并难以从您的网站下载图像的插件来做到这一点。
In this article, we’ll show you how to add no right-click on WordPress images and galleries. We’ll also talk about alternative approaches to discourage users from stealing images off your website.
在本文中,我们将向您展示如何在WordPress图像和画廊上不添加任何右键单击。 我们还将讨论替代方法,以阻止用户从您的网站上窃取图像。
影片教学 (Video Tutorial)
If you don’t like the video or need more instructions, then continue reading.
如果您不喜欢该视频或需要更多说明,请继续阅读。
在WordPress图像上不添加任何右键单击 (Adding No Right Click on WordPress Images)
First, you need to install and activate the No Right Click Images Plugin. For more details, see our step by step guide on how to install a WordPress plugin.
首先,您需要安装并**“ 无右键单击图像”插件 。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。
Upon activation, go to Settings » No Right Click Images page to configure plugin settings.
**后,转到“设置”»“无右键单击图像”页面以配置插件设置。
The default options would work for most users, but you can still review and change them as needed.
默认选项适用于大多数用户,但是您仍然可以根据需要进行查看和更改。
The first option allows logged in WordPress users to right-click on images. ‘Disable Dragging of images’ option prevents users from dragging an image from their browser to their computer.
第一个选项允许登录的WordPress用户右键单击图像。 “禁用图像拖动”选项可防止用户将图像从浏览器拖动到计算机。
‘Disable Touch events’ options prevents users from using touch devices like mobile phones to download images. It is the no right-click solution for smart phones and tablets.
“禁用触摸事件”选项可防止用户使用手机等触摸设备下载图像。 对于智能手机和平板电脑,这不是绝对不能单击的解决方案。
You can also disable gestures and context menu on Apple devices.
您还可以在Apple设备上禁用手势和上下文菜单。
After reviewing the settings, don’t forget to click on the ‘Save changes’ button to store your changes.
查看设置后,不要忘记单击“保存更改”按钮来存储您的更改。
You can now log out of WordPress and then visit your website to see the plugin in action.
现在,您可以注销WordPress,然后访问您的网站以查看该插件的运行情况。
不添加右键单击图像库 (Adding No Right Click on Image Galleries)
The above solution works for all images on your website. However, a lot of users who want to protect their images are photographers and people sharing their work through galleries.
以上解决方案适用于您网站上的所有图像。 但是,许多想要保护其图像的用户是摄影师,并且人们通过画廊分享他们的作品。
This is where Envira Gallery comes in. It is one of the best WordPress gallery plugin on the market and comes with a protection addon that disables right-click for your image galleries.
这就是Envira Gallery的用处 。它是市场上最好的WordPress Gallery插件之一,并带有保护插件,可禁用右键单击图像画廊。
First thing you need to do is install and activate the Envira Gallery plugin. For more details, see our step by step guide on how to install a WordPress plugin.
您需要做的第一件事是安装并**Envira Gallery插件。 有关更多详细信息,请参阅有关如何安装WordPress插件的分步指南。
Upon activation, you need to visit Envira Gallery » Settings page to enter your license key. You can find this information under your account on the Envira Gallery website.
**后,您需要访问Envira Gallery»设置页面以输入许可证**。 您可以在Envira Gallery网站上的帐户下找到此信息。
Next, you need to visit Envira Gallery » Addons page. Scroll down to the Protection addon and then click on the Install and Activate button.
接下来,您需要访问Envira Gallery»插件页面。 向下滚动到“保护”插件,然后单击“安装并**”按钮。
Now you can start creating image galleries using the Envira Gallery plugin.
现在,您可以使用Envira Gallery插件开始创建图像画廊。
Let’s create your first image gallery and enable no-right-click protection for images in that photo gallery.
让我们创建您的第一个图片库,并对该图片库中的图像启用无右键单击保护。
First, you need to visit Envira Gallery » Add New page to create a new gallery. Provide a title for your image gallery and then upload the files you want to add to the gallery.
首先,您需要访问Envira Gallery»添加新页面以创建新的画廊。 为图片库提供标题,然后将要添加的文件上传到图片库。
After that, you need to scroll down to the gallery setting section below and click on the Misc tab. From here, go to the image protection settings section.
之后,您需要向下滚动到下面的图库设置部分,然后单击“其他”选项卡。 从这里转到图像保护设置部分。
You need to check the ‘Enable Image Protection’ checkbox to disable right-click for this particular image gallery. Optionally, you can also show a popup notification when users try to use right-click.
您需要选中“启用图像保护”复选框以禁用右键单击该特定图像库。 (可选)您还可以在用户尝试使用右键单击时显示弹出通知。
You can now click on the publish button to save your image gallery.
现在,您可以单击“发布”按钮以保存您的图片库。
Adding Your Gallery to a WordPress Post or Page
将图库添加到WordPress帖子或页面
Your image gallery is ready, and you can now add it to any WordPress post or page. Simply edit the post or page where you want to add the gallery and add the Envira Gallery block to the editor.
您的图片库已准备就绪,您现在可以将其添加到任何WordPress帖子或页面中。 只需在要添加图库的位置编辑帖子或页面,然后将Envira Gallery块添加到编辑器。
After that, you need to select the image gallery you created earlier from the dropdown menu. Envira Gallery will load your image gallery with a live preview.
之后,您需要从下拉菜单中选择之前创建的图片库。 Envira Gallery将使用实时预览加载图像库。
You can now save your post and visit your website to see the no right-click feature in action. If you have enabled the popup feature then this is how it would look when a user tries to right-click on an image in the gallery.
现在,您可以保存您的帖子并访问您的网站,以查看实际无右键单击功能。 如果启用了弹出功能,则这是用户尝试右键单击图库中的图像时的外观。
禁用右键单击WordPress图像的利弊 (Pros and Cons of Disabling Right Click on WordPress Images)
The number one reason users want to add no right-click on WordPress images is to prevent website visitors from illegally using those images elsewhere.
用户不希望在WordPress图像上不添加任何右键单击的第一原因是为了防止网站访问者在其他地方非法使用这些图像。
Adding no right-click to your images makes it harder for users to download images. It also serves as a reminder to users that the website owner does not want them to download images or reuse them without permission.
没有在图像上单击鼠标右键,将使用户更难以下载图像。 这也提醒用户网站所有者不希望他们未经允许就下载图像或重复使用它们。
However, it does not completely stop users from stealing images from your website.
但是,它并不能完全阻止用户从您的网站上窃取图像。
A user can still download an entire web page which will also include all images on that page.
用户仍然可以下载整个网页,该网页还将包括该页面上的所有图像。
They can also use the browser’s view source or inspect tool without right-clicking. This will give access to the direct image file which they can download and save on their computer.
他们还可以使用浏览器的视图源或检查工具,而无需右键单击。 这样可以访问直接图像文件,他们可以将其下载并保存在计算机上。
On the other hand, adding no right-click on images may also stop several users who may have some genuine reason to save images from your website. Some users may find it annoying and this would affect their user experience on your website.
另一方面,不对图像添加任何右键单击也可能会阻止一些用户,这些用户可能有某些真正的理由从您的网站保存图像。 一些用户可能会觉得很烦,这会影响他们在您网站上的用户体验。
阻止网站上图像盗窃的其他方法 (Alternative Approaches to Discourage Image Theft on Your Website)
If you don’t want to affect user experience by adding no-right-click to your WordPress images, then there are a few things you can do to discourage improper use of your work.
如果您不想通过在WordPress图像上添加无右键单击来影响用户体验,那么可以采取一些措施来阻止对工作的不当使用。
1. Add a Copyright Notice Below Your Images
1.在图像下方添加版权声明
You can add a copyright notice below your images in plain text. This serves as a deterrent without affecting user experience.
您可以在图像下方以纯文本添加版权声明。 这起到了威慑作用,而不会影响用户体验。
You can do this by using Gutenberg blocks. See more details in our Gutenberg tutorial.
您可以使用Gutenberg块来完成此操作。 在我们的Gutenberg教程中查看更多详细信息。
2. Give Users a Chance to Ask for Permission
2.给用户机会寻求许可
If you want users to be able to reuse your images with your permission and conditions, then you can simply let them know. We recommend using WPForms to create a simple contact form for users to send requests.
如果您希望用户能够在您的许可和条件下重新使用您的图像,则只需告知他们即可。 我们建议使用WPForms创建一个简单的联系表单,供用户发送请求。
3. Add Watermark to Your Images
3.在图像中添加水印
You can also add watermark to your images. This will affect the quality and aesthetics of your images, but it will definitely discourage users from stealing and reusing those images.
您还可以在图像中添加水印 。 这将影响图像的质量和美观度,但是肯定会阻止用户窃取和重复使用这些图像。
We hope this article helped you add no right-click on WordPress images. You may also want to see our guide on how to optimize your image SEO, and how to optimize images for web performance (without losing quality).
我们希望本文能帮助您在WordPress图片上不添加任何右键单击。 您可能还想查看我们的指南,以了解如何优化图像SEO以及如何优化图像以提高Web性能 (不降低质量)。
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress****。 您也可以在Twitter和Facebook上找到我们。
翻译自: https://www.wpbeginner.com/plugins/no-right-click-wordpress-images/
wordpress添加媒体