Adding Disallow: /attachments/ to robots.txt

JoyFreak

Well-known member
If I add:
Disallow: /attachments/
to my Robots.txt.. Does that mean attachments such as images won't get index'd on search engines?

I've seen XenForo using it in their robots.txt but I've also noticed attachments on here getting index'd, so it has me bit confused.
 
to my Robots.txt.. Does that mean attachments such as images won't get index'd on search engines?
Yeah.

I've seen XenForo using it in their robots.txt but I've also noticed attachments on here getting index'd, so it has me bit confused.
Are you sure? Attachments aren't visible to guests here to the best of my knowledge. Attachment thumbnails are visible to guests even when attachments themselves aren't, so I suppose it's possible those might get indexed.
 
If you don't disallow you'll get a soft 404s in Google Search Console for each attachment. XF is just built wrong for this.
 
If you don't disallow you'll get a soft 404s in Google Search Console for each attachment. XF is just built wrong for this.
I haven't had any errors for attachments in GSC and I haven't disallowed it since launch of my board. So I don't know how much of that is true.
 
Back
Top Bottom