Quick question here. Does anyone know how to stop bots from adding items to carts in Woocommerce? I have added a nofollow to the tag but its still happening. We are using the Ajax enabled add to cart on the homepage, categories and archives. Thank you in advance.
Asked
Active
Viewed 116 times
0
-
This question shows no research. Use robots.txt to prevent legitimate crawlers from accessing specific links, like add to cart, on your site. – Justin R. Jun 12 '18 at 17:39
-
Using robots for the ajax enabled links don't stop bots from clicking a href tag. – ValhallaSkies Jun 12 '18 at 17:43
-
Using robots.txt sets the directive for bots for what they should and should not crawl. This should include JS. https://webmasters.stackexchange.com/questions/104011/how-do-i-stop-google-from-indexing-ajax-calls-within-javascript – Justin R. Jun 12 '18 at 17:53