Admin-Ahead Community

Linux => General Linux => Topic started by: lijeshk on December 03, 2013, 04:19:23 am

Title: How to disable website pages download using wget?
Post by: lijeshk 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!

--
 :)