Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to disable website pages download using wget?  (Read 2357 times)

0 Members and 1 Guest are viewing this topic.

lijeshk

  • Guest
How to disable website pages download using wget?
« on: December 03, 2013, 04:19:23 am »

If you want to disable wget to grab your site pages then simply add the code below in the .htaccess file under public_html directory for which you wish to disable the wget grabbing.

Code: [Select]
SetEnvIfNoCase User-Agent “^Wget” bad_bot
<Limit GET POST>
Order Allow,Deny
Allow from all
Deny from env=bad_bot
</Limit>

Now, if anybody tries to grab info from your website using wget, he will receive a 403 error.

That’s it!

--
 :)