将所有流量从 HTTP_REFERER 重定向到其他流量
有人正在逐字逐图地抓取朋友的博客。
我正在 htaccess 中尝试一些代码,以便他们将来这样做时会抓取一些虚假内容。
这是我现在所拥有的。
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.theirdomain.com
RewriteRule ^(.*)$ http://www.mydomain.com/rickrolling.html [R=301,L]
我希望抓取域在抓取时始终看到 rickrolling.html 页面。
看了这里,我发现的例子似乎不起作用。上面似乎应该对我有用。
感谢您的帮助
Someone is scraping a friends blog, word for word, picture for picture.
I am trying some code out in htaccess so that when they do this in the future they will scrape some fake content.
Here is what I have at the moment.
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://www.theirdomain.com
RewriteRule ^(.*)$ http://www.mydomain.com/rickrolling.html [R=301,L]
I want the scraping domain to always see the rickrolling.html page when they scrape.
Had a look on here and the examples I found don't seem to work. Above seems like it should work for me.
Thanks for your help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当他们抓取时,他们实际上是否将自己的域名设置为 HTTP
Referer
标头?我怀疑不是。您最好检查一下他们的 IP 地址或其他信息。您有权访问服务器日志吗?您能识别来自他们的请求吗?但最终,您是在这里寻找法律问题的技术解决方案。您最好对他们的域名进行
whois
查找,并威胁要起诉他们及其主机。如果您和他们的主机都在美国,可以使用一种特殊的法律工具,称为 DMCA 删除通知。我本人不在美国,所以不太了解。但查一下。When they're scraping, do they actually set their own domain name as the HTTP
Referer
header? I suspect not. You'd be better off checking against their IP address or something. Do you have access to the server logs? Can you identify the requests that are coming from them?But ultimately, you're here looking for a technical solution to a legal problem. You'd be better off doing a
whois
lookup on their domain name, and threatening to sue them and their host. If both you and their host are in the USA, there's a special legal tool called a DMCA Takedown Notice. I'm not in the USA myself, so I don't know much about it. But look it up.