Adding Disallow: /attachments/ to robots.txt

JoyFreak

Well-known member
Licensed customer
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.
 
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.
Odd, I have 85k soft 404s and they are all attachment images.
 
Odd, I have 85k soft 404s and they are all attachment images.
It might just be random. I get some soft 404s for other URLs randomly and I just validate a fix and they pass after a week. It’s odd behaviour but try it.
 
Back
Top Bottom