I'm having a weird issue with the image display on attachment pages in my forum. Could someone please help me understand what's causing this and how to resolve it?
A 403 usually means the server is blocking access.
In this case it might also mean that the user in question does not have access to the attachment. For instance, if someone shared the URL to an attachment, and someone tried to access it that does not have permissions to see the post.
Assuming it's Google you are referring too since that image is from Search Console. In the ACP go to Permissions tab >> under Global headings select Groups Permissions and then select the bots group from Drop down. Make sure "Can download files" is set to yes.
Next, again on the permissions tab under the permissions roles heading select Forum roles. Click the green gear to the right of the Bot Access role and make sure Can download files is set to yes.
With those settings the bot will be able to download files in any forum where they are assigned Bot access role. If no access is assigned it won't be able to a download files.
To elaborate on what Brf mentioned, if for example you have private forum limited to certain groups. If someone posts a link in public forum to an attachment in it users without access to that forum will not be able to download files from it. Same thing applies to attachments in PM's only the sender and recipient can view attachment in PM.
It's possible to give access to files only in private forums. Create a new forum role based on "No Access", set can download files to yes.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”