Blocked due to access forbidden (403)

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
saavannah
Registered User
Posts: 17
Joined: Sun Oct 27, 2024 5:03 am

Blocked due to access forbidden (403)

Post by saavannah »

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?
image e.jpg
ex:

Code: Select all

https://www.phpbb.com/community/download/file.php?id=283207&mode=view
You do not have the required permissions to view the files attached to this post.
Well done is better than well said.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53568
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: Blocked due to access forbidden (403)

Post by Brf »

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.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6436
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Blocked due to access forbidden (403)

Post by thecoalman »

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.”

Attributed - Thomas Edison
saavannah
Registered User
Posts: 17
Joined: Sun Oct 27, 2024 5:03 am

Re: Blocked due to access forbidden (403)

Post by saavannah »

thecoalman .. genius

before:
1.jpg
after:
2.jpg
You do not have the required permissions to view the files attached to this post.
Well done is better than well said.

Return to “[3.3.x] Support Forum”