SRN
SRN

Reputation: 11

Disable remotely downloading webpages using curl/wget

I need to disable remotely downloading my web pages using curl/wget.

I want to disable curl -vv http://www.example.com and I need to get a result like this

**

**

I am using Apache, Using Cloudflare. Please help me

Upvotes: 0

Views: 996

Answers (1)

Elvis Plesky
Elvis Plesky

Reputation: 3300

You can disable wget and curl with the rules below:

RewriteCond %{HTTP_USER_AGENT} ^pycurl [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget [NC,OR]

Just add them to .htaccess.

Upvotes: 0

Related Questions