[Membership 2 Pro] Protecting a url in membership 2 pro

I am trying to protect a link to a PDF. This PDF should only be available to members. So my url is like this: https://mywebsite/PDF/something.pdf I tried URL Restriction addon, added the url there, but that does not work. People are still able to see the PDF

I also tried media protection and that did not work. Can you please let me know how I can restrict people (non-members) from seeing the PDF?