Protect /administratoin Path

is there a way to protect the /adminitration path of a website that i'm hosting in docker.
the condition must be something like sourde IP 192.168.1.x allowed. else denied