Redirect to 404 when file access is denied

Viewing 8 posts - 1 through 8 (of 8 total)
#178040

Merlin Kairies
Participant

Hello,
when accessing a protected file by its URL it redirects and downloads a short .txt file with a “You don’t have permission to download this file” message.

Is it possible to instead redirect to a custom page? -such as 404

Seems to be a cleaner solution and reduces server download requests.

#178042

Nayeem Riddhi
Moderator

Hello Merlin Kairies,

Hope you are well. Can you please share the related URL? if possible, please, give your temporary wp-admin login details in a private reply for checking the issue.

Thank you and regards

#178043

Merlin Kairies
Participant
This reply has been marked as private.
#178045

Nayeem Riddhi
Moderator

Hello Merlin Kairies,

Can you please check the option from Downloads > Settings > Basic > Permission Denied Message for Packages: if it helps you.

Thank you and regards

#178046

Merlin Kairies
Participant
This reply has been marked as private.
#178048

Merlin Kairies
Participant
This reply has been marked as private.
#178069

Nayeem Riddhi
Moderator

Hello Merlin Kairies,

The admin login you have shared can’t able to access. Can you please check it again?

Thank you and regards

#178070

Merlin Kairies
Participant
This reply has been marked as private.
Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Redirect to 404 when file access is denied’ is closed to new replies.