File Restriction set in media library attachment details not working

in Download Manager Free

Viewing 8 posts - 1 through 8 (of 8 total)
Feb 3, 2022 at 9:02 pm
#167534
Participant
Elizabeth M
OP

Hello.

I uploaded a PDF and when I clicked the file in the media library to open the settings, I clicked the green “Protect this file” button. Then under “Allow Access”, I clicked the role I wanted to have access to the file. After that, I grabbed the file URL, pasted it in an incognito window and it opened. Why is the role restriction not working?

I need to have only a certain role access this file, including the file URL.

Can someone help?

Thanks in advance!

Feb 4, 2022 at 5:31 pm
#167588
Moderator
Nayeem Riddhi
Staff

Hello Elizabeth,

Hope you are well. When you are creating a package, don’t protect the media file from using the media file protection option, use package access control. The Media file protection option is for the cases when users are sharing media files directly without creating packages. I hope you have understood

Thank you and regards

Feb 7, 2022 at 2:49 pm
#167717
Participant
Elizabeth M
OP
This reply has been marked as private.
Feb 7, 2022 at 3:17 pm
#167720
Moderator
Nayeem Riddhi
Staff

Hello Elizabeth,

Have you checked the package access control option too for WPDM? please check and let me know

Thank you and regards

Feb 7, 2022 at 6:12 pm
#167739
Participant
Elizabeth M
OP
This reply has been marked as private.
Feb 8, 2022 at 8:16 am
#167752
Moderator
Nayeem Riddhi
Staff

Hello Elizabeth,
For Protecting WordPress media library files, you may check this article too,

How To Protect WordPress Media Library Files? – WordPress Download Manager (wpdownloadmanager.com)

**Note**  it will only work with the apache server, as the protection is handled by .htaccess rules

please check

Thank you and regards

Feb 8, 2022 at 1:18 pm
#167764
Participant
Elizabeth M
OP

Thank you!  You may close this thread.

Feb 9, 2022 at 1:10 pm
#167848
Moderator
Nayeem Riddhi
Staff

Hello Elizabeth,

You are welcome. Please let us know if you have any query in the next time

Thank you and regards

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

The topic "File Restriction set in media library attachment details not working" is closed to new replies.