Do not allow attachments to be downloaded to guests and bots
Posted: Wed Sep 04, 2024 10:18 am
Open includes/functions_content.php and find
Add after on new line
Clear cache after modification
With this modification the display of images in attached files will be possible to guests and bots, but not file downloading.
This solution makes it possible to do without the authorization provided for in the ACP
Code: Select all
'S_FILE' => true,
Code: Select all
'S_DENIED' => (empty($user->data['is_registered']) || !empty($user->data['is_bot'])) ? true : false,
'DENIED_MESSAGE' => 'You do not have the required permissions to download this file.<br>Need to be logged in to the forum to downloaded.',
With this modification the display of images in attached files will be possible to guests and bots, but not file downloading.
This solution makes it possible to do without the authorization provided for in the ACP