File Restriction set in media library attachment details not working

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

Elizabeth M
Participant

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!

#167588

Nayeem Riddhi
Moderator

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

#167717

Elizabeth M
Participant
This reply has been marked as private.
#167720

Nayeem Riddhi
Moderator

Hello Elizabeth,

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

Thank you and regards

#167739

Elizabeth M
Participant
This reply has been marked as private.
#167752

Nayeem Riddhi
Moderator

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

  • This reply was modified 2 years, 3 months ago by Nayeem Riddhi.
#167764

Elizabeth M
Participant

Thank you!  You may close this thread.

#167848

Nayeem Riddhi
Moderator

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.