[英]Disable remotely downloading webpages using curl/wget
I need to disable remotely downloading my web pages using curl/wget. 我需要禁用使用curl / wget远程下载网页。
I want to disable curl -vv http://www.example.com and I need to get a result like this 我想禁用curl -vv http://www.example.com ,我需要得到这样的结果
** **
** **
I am using Apache, Using Cloudflare. 我正在使用Apache,正在使用Cloudflare。 Please help me 请帮我
You can disable wget
and curl
with the rules below: 您可以使用以下规则禁用wget
和curl
:
RewriteCond %{HTTP_USER_AGENT} ^pycurl [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget [NC,OR]
Just add them to .htaccess
. 只需将它们添加到.htaccess
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.