0

In magento site, 32 gb is wasted by "Not viewed traffic includes traffic generated by robots, worms, or replies with special HTTP status codes."

Googlebot alone is using 29.41 gb. I wanted to avoid all these "Robots/spiders" consuming bandwidth.

SO I added robots.txt file :

But I need more security.

Where to add in magento

to stop all robots/spiders/googlebot to stop indexing or crawling magento site.

Let me know if you need any clarifications.

Thanks in advance.

1 Answer 1

2

If Google does not crawl your site, nobody find you :) It is vise to restrict some areas like
1. layered navigation
2. search and advanced search
3. paginated content

Also you can disallow some user agents (bots and crawlers) in the .htaccess file.

Taken from stackoverflow:

You need to have mod_rewrite enabled. Placed it in .htaccess in that folder. If placed elsewhere (e.g. parent folder) then RewriteRule pattern need to be slightly modified to include that folder name).

RewriteEngine On

RewriteCond %{HTTP_USER_AGENT} (googlebot|bingbot|Baiduspider) [NC]
RewriteRule .* - [R=403,L]
  1. I have entered only few bots -- you add any other yourself (letter case does not matter).
  2. This rule will respond with "403 Access Forbidden" result code for such requests. You can change to another response HTTP code if you really want (403 is most appropriate here considering your requirements).
3
  • hi , thanks a lot for reply. Can you please tell me how i can disallow some user agents (bots and crawlers) in .htaccess. this is site's .htaccess = > pastebin.com/1aviiqt9 Commented Oct 1, 2014 at 11:15
  • 1
    Have edited the answer based on stackoverflow.com/questions/10735766/…
    – Amasty
    Commented Oct 1, 2014 at 11:26
  • thanks a lot ,I am not that much aware about these things, i will search in google and let you know soon. Commented Oct 1, 2014 at 11:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.