How to Prohibit Community Obtain to File Back links?

Good day, is there a way to restrict to any information uploaded to a sure folder on `/wp-information/uploads/example-folder`

For case in point, on the frontend. Registered consumer add a file, and it really is stored as `/wp-information/uploads/instance-folder/file.png`

As a result, if anyone has the backlink to it, any individual can access the file the registered user uploaded.


Is it achievable to:

* Only a logged-in admin and the logged-in person who uploaded the file can accessibility the file by way of its website link.
* And
* Other logged-in registered end users or unregistered visitor will not be ready to entry the file even if they have the URL to the file.

The purpose is to guarantee only people who has authorization to accessibility to the uploaded file can entry it and nobody else.

Leave a Reply

Your email address will not be published. Required fields are marked *