Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess 使用此访问规则有什么问题?_.htaccess - Fatal编程技术网

.htaccess 使用此访问规则有什么问题?

.htaccess 使用此访问规则有什么问题?,.htaccess,.htaccess,我发现有人在复制我的网站,所以我只想用“不复制”图片替换他网站上的热链接图片。但后来有人给我发信息说,他们也在我的网站上看到了“请勿复制”的图片。有什么问题吗 RewriteEngine On RewriteCond %{HTTP_REFERER} ^http://(.+\.)?example\.net/ [NC] RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://link/to/image.jpg [L] “推荐人”是由客户填写的项目。不是每个人都使用它

我发现有人在复制我的网站,所以我只想用“不复制”图片替换他网站上的热链接图片。但后来有人给我发信息说,他们也在我的网站上看到了“请勿复制”的图片。有什么问题吗

RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(.+\.)?example\.net/ [NC]
RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://link/to/image.jpg [L]

“推荐人”是由客户填写的项目。不是每个人都使用它,所以不是每个人都会得到你的形象


客户端浏览器可以将其留空以获得更好的隐私,也可以将您的网站作为参考,以伪造行为并仍然获取您的图像。因此,当用户报告时,您会收到一些误报,也可能会收到一些误报,因为人们仍然在过滤您的图像,尽管您必须专门针对这一点。

最好针对一个人,而不是潜在地阻止普通用户查看您的图像。你有IP地址之类的吗?