How to restrict the specified IP to access the links of publicly shared files?

I tried to limit the url of the shared link in Nginx, but this method did not work. When I opened the link and observed the access log of nginx, I found that the GET request was not the shared link generated by nextcloud. How should I configure it to achieve this function?

Because I found that the file I shared was maliciously spread, so I want to set access control on the specified IP

Hi @vincent_H

This might be what you are looking for…


Thank you very much for your answers

1 Like