A
A
Alex Lapikov2021-12-21 20:59:49
PHP
Alex Lapikov, 2021-12-21 20:59:49

How to restrict file download via direct link?

Hello nginx server, wordpress system.
It is necessary to implement a ban on uploading a file via a direct link from the uploads directory, but issue it from the admin panel.

I know what nginx can do to the deny all directory at the folder address like htaccess in apache, but then the files will be basically inaccessible.. The
question is how to check this and grant access to the directory from the admin panel?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
ky0, 2021-12-21
@ky0

This is the job of the application, not the web server.

D
Dmitry, 2021-12-21
@pro100taa

Plugins to hide links will not work?
Easy Affiliate Links
Pretty Links
WP Cloaker
WP to Affiliate
WooCommerce Cloak

S
Sergey Tomulevich, 2021-12-22
@phoinixrw

https://nginx.org/ru/docs/http/ngx_http_secure_lin...
Cheap and cheerful.
It remains only in the admin panel to generate links with keys.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question