Prevent external IPs from accessing the admin interface

#1

Hi all

Is there any way to block access to the main admin page on an external IP ?

#2

You can tweak the nginx conf and add allow / deny instructions from nginx to block IPs outside local network.

1 Like
#4

So after reading a bit more on this (And thanks for the advice) I basilcy need to deny rule say for example for ip .... In the locantion section of the Conf for that applcations.

So my admin Site I need to amend

*/etc/nginx/conf.d/yunohost_admin.conf

in the location section something like this

location /yunohost/admin {
deny ...;

or should be somethimg else ?