wordpress图像大小_防止WordPress中图像盗用的4种方法

wordpress图像大小

Image theft is a common problem that photographers deal with on a regular basis. Recently one of our readers asked if there was a way to prevent image theft in WordPress. In this article, we will share 4 ways to prevent image theft in WordPress powered websites.

图像盗窃是摄影师定期处理的常见问题。 最近,我们的一位读者问道,是否有一种方法可以防止WordPress中的图像盗窃。 在本文中,我们将分享4种方法来防止WordPress驱动的网站中的图像被盗。

Prevent Image Theft
关于图像盗用和版权 (About Image Theft and Copyright)

Copyright laws are universal and applicable around the world. The original creator automatically becomes the copyright owner of their creative work. Even if they don’t mention it on their website, one should still assume that the content they are viewing is protected by copyright.

版权法在世界范围内普遍适用。 原始创作者自动成为其创作作品的版权所有者。 即使他们没有在网站上提及它,也应该假设他们正在查看的内容受版权保护。

This includes images, text, videos, or any other form of content that you see on the web.

这包括图像,文本,视频或您在网络上看到的任何其他形式的内容。

The problem is that images and text can be easily copied. Many people think that no one would notice if they stole an image and used it on their own website.

问题在于图像和文本可以轻松复制。 许多人认为,如果他们偷了图像并在自己的网站上使用过,没人会注意到。

It is not only illegal but also unethical to steal other people’s work. There are many places where you can easily find royalty free and public domain images.

窃取他人的作品不仅是非法的,而且是不道德的。 在许多地方,您可以轻松找到免版税公共领域的图像

While it is flattering to see other people use your work in their own projects, sometimes it can be very frustrating to see a blatant disregard for your rights.

看到其他人在您自己的项目中使用您的作品虽然很讨人喜欢,但有时却很无奈地看到公然无视您的权利。

There is no way to completely stop people from stealing your images, but there are plenty of ways to discourage and prevent image theft on a WordPress website.

无法完全阻止人们窃取您的图像,但是有很多方法可以阻止并防止WordPress网站上的图像被盗。

Here are the 4 most common ways to protect your images in WordPress.

这是在WordPress中保护图像的4种最常用的方法。

1.禁用右键 (1. Disable Right Click)

Stealing images from your website is easy because a user can simply right click and select ‘save image as’ to download them. You can disable right click on your website and make it more difficult for an average user to steal your image.

从用户那里窃取图像非常容易,因为用户只需右键单击并选择“另存为”即可下载图像。 您可以禁用网站上的右键单击,使普通用户更难以窃取您的图像。

Here are two plugins that you can use to disable right click on images in WordPress.

这是两个插件,可用于禁用WordPress中的图像右键单击。

Envira Gallery

环保画廊

Envira Gallery is the best WordPress gallery plugin in the market. Apart from helping you create beautiful image galleries, Envira comes with tons of other features as well. One of these features is image protection.

Envira Gallery是市场上最好的WordPress Gallery插件 。 除了帮助您创建漂亮的图像库之外,Envira还具有大量其他功能。 这些功能之一是图像保护。

Simply go to Envira Gallery » Settings and click on the Addons tab. Scroll down to locate Protection Addon, and then install and activate it.

只需转到Envira Gallery»设置 ,然后单击Addons选项卡。 向下滚动以找到Protection Addon ,然后安装并激活它。

Image theft protection addon in Envira Gallery plugin for WordPress

Now create a new image gallery with Envira Gallery. If this is your first time, then take a look at how to easily create responsive image galleries in WordPress with Envira Gallery.

现在,使用Envira Gallery创建一个新的图库。 如果这是您第一次来,请看看如何使用Envira Gallery 在WordPress中轻松创建响应式图像库。

When creating your gallery, click on the Misc tab and scroll down to the bottom. You will find the option to enable image protection. Check this option and save your gallery.

创建画廊时,单击“杂项”选项卡并向下滚动到底部。 您会找到启用图像保护的选项。 选中此选项并保存您的画廊。

Enabling image protection for a gallery with Envira Gallery

You can now add this image gallery anywhere on your WordPress site. It will automatically disable right click on images.

现在,您可以在WordPress网站上的任何位置添加此图片库。 它将自动禁用对图像的右键单击。

WP Content Copy Protection

WP内容复制保护

This simple plugin is free and will disable right click on your WordPress site. The downside of using this plugin is that it disables right clicking on the whole page.

这个简单的插件是免费的,并且将禁用在WordPress网站上的右键单击。 使用此插件的缺点是禁用了在整个页面上的右键单击。

If you are using a slider or lightbox plugin, then sometimes this plugin will not work properly.

如果您使用的是滑块或灯箱插件,则有时此插件将无法正常工作。

2.在您的WordPress图片上使用水印 (2. Use Watermark on Your WordPress Images)

Watermarks seem to be working great for many stock photography websites. The obvious down side is that your photographs or images might not look the best.

水印似乎对许多股票摄影网站都有效。 明显的缺点是您的照片或图像可能看起来不是最好的。

However, you can add watermark tastefully. The goal is to keep the aesthetic appeal of your images while still discouraging people from stealing them.

但是,您可以高雅地添加水印。 目的是在保持图像美感的同时,仍不鼓励人们窃取图像。

Method 1: Using Envira Gallery

方法1:使用Envira库

Again, we can’t stress enough that Envira is photographer’s best friend. It also comes with a Watermarking addon. You will need at least a silver license of Envira Gallery to use this addon.

再次强调,Envira是摄影师的最好朋友。 它还带有水印插件。 您至少需要Envira Gallery的白银许可证才能使用此插件。

Simply install and activate Envira Gallery plugin. Upon activation, you need to visit Envira Gallery » Settings and click on the addons tab. Locate Watermarking addon, and then install and activate it.

只需安装并激活Envira Gallery插件即可。 激活后,您需要访问Envira Gallery»设置 ,然后单击插件选项卡。 找到“水印添加项”,然后安装并激活它。

Now when creating a gallery or editing an existing gallery, you will notice the new watermarking tab in gallery settings.

现在,当创建画廊或编辑现有画廊时,您会在画廊设置中注意到新的水印选项卡。

Watermarking addon in Envira Gallery plugin for WordPress

Method 2: Using Easy Watermark Plugin

方法2:使用简单的水印插件

The other option is to use the Easy Watermark plugin. Simply install and activate the Easy Watermark plugin. Upon activation, go to Settings » Easy Watermark page to configure the plugin settings.

另一种选择是使用Easy Watermark插件。 只需安装并激活Easy Watermark插件即可。 激活后,转到设置»轻松水印页面以配置插件设置。

Settings page for Easy Watermark plugin

For detailed instructions take a look at our guide on how to automatically add watermark to images in WordPress.

有关详细说明,请参阅我们的指南,了解如何在WordPress中自动向图像添加水印

3.禁用WordPress中图像的热链接 (3. Disable Hotlinking of Images in WordPress)

Another common way to steal images from websites is by loading them from the original source. The image will load from your servers and will be displayed on third party websites without your permission.

从网站窃取图像的另一种常见方法是从原始来源加载图像。 该图像将从您的服务器加载,未经您的许可将显示在第三方网站上。

This also increases your server load and bandwidth usage.

这也会增加服务器负载和带宽使用率。

Here is how you can disable hotlinking of images from your WordPress site.

这是您如何禁用来自WordPress网站的图像的热链接。

Simply add this code to the .htaccess file in your WordPress site’s root directory.

只需将此代码添加到WordPress网站根目录中的.htaccess文件即可。


#disable hotlinking of images with forbidden or custom image option
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?wpbeginner.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?google.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ – [NC,F,L] 

Don’t forget to replace wpbeginner.com with your own domain name.

不要忘记用您自己的域名替换wpbeginner.com。

This code blocks hotlinking while still allowing images to be viewed in search results and on your website.

该代码阻止了热链接,同时仍然允许在搜索结果和您的网站上查看图像。

Can’t find the .htaccess file? Refer to our tutorial on how to find the .htaccess file in WordPress.

.htaccess文件找不到? 请参阅有关如何在WordPress中查找.htaccess文件的教程。

4.在您的WordPress网站上添加版权声明 (4. Add Copyright Notices on Your WordPress Site)

Adding a copyright notice to your website can also discourage people from stealing images. You can simply add a copyright notice to your theme’s footer file in plain text or HTML like this:

在您的网站上添加版权声明也可以阻止人们窃取图像。 您可以简单地将纯文本或HTML的版权声明添加到主题的页脚文件中,如下所示:


<p>&copy; 2009-2016 WPbeginenr.com</p>

The downside of this is that you will have to edit this code each year. A better approach is to add a dynamic copyright notice in WordPress. Simply add this code to your theme’s functions.php file or a site-specific plugin.

这样做的缺点是您每年必须编辑此代码。 更好的方法是在WordPress中添加动态版权声明。 只需将此代码添加到主题的functions.php文件或特定站点的插件中即可


function wpb_copyright() {
global $wpdb;
$copyright_dates = $wpdb->get_results("
SELECT
YEAR(min(post_date_gmt)) AS firstdate,
YEAR(max(post_date_gmt)) AS lastdate
FROM
$wpdb->posts
WHERE
post_status = 'publish'
");
$output = '';
if($copyright_dates) {
$copyright = "&copy; " . $copyright_dates[0]->firstdate;
if($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate) {
$copyright .= '-' . $copyright_dates[0]->lastdate;
}
$output = $copyright;
}
return $output;
}

add_shortcode('copyright','wpb_copyright');
add_filter('widget_text', 'do_shortcode');

This code finds the date of the first post you published on your blog and the last date you published anything. After that it outputs a dynamic copyright notice.

此代码查找您在博客上发布的第一条帖子的日期以及发布任何内容的最后日期。 之后,它将输出动态版权声明。

You will need to add the shortcode [copyright] to any post, page or text widget on your site to display copyright notice. You can also use this code in your theme’s footer.

您需要将简码[copyright]添加到网站上的任何帖子,页面或文本小部件中,以显示版权声明。 您也可以在主题页脚中使用此代码。


<?php echo wpb_copyright(); ?>

Copyright notice

We hope this article helped you protect your images and prevent image theft in WordPress. You may also want to see our guide on how to fix most common image issues in WordPress.

我们希望本文能帮助您保护图像并防止WordPress中的图像被盗。 您可能还希望查看有关如何解决WordPress中最常见图像问题的指南。

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视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/beginners-guide/4-ways-to-prevent-image-theft-in-wordpress/

wordpress图像大小

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值