yithemes / yith-woocommerce-wishlist

YITH WooCommerce Wishlist gives your users the possibility to create, fill, manage and share their wishlists allowing you to analyze their interests and needs to improve your marketing strategies.
GNU General Public License v3.0
9 stars 12 forks source link

Consider adding a robots.txt disallow line for the add_to_wishlist URLs #27

Open garyillyes opened 3 months ago

garyillyes commented 3 months ago

While there's already a rel=nofollow added to all Add to Wishlist buttons and noindex otherwise, the same URLs can be discovered by crawlers elsewhere on the site or offsite, without the nofollow attribute. This causes problem for some sites because crawlers discover those URLs and, in some cases, crawl a few million of the add_to_wishlist URLs before realizing they're useless.

If possible, consider injecting a new rule in the robots.txt of the sites that use the plugin to generally disallow crawling of these URLs. Something like:

disallow: /*add_to_wishlist