How to disable access to anyone not coming from a specific IP address

If you really want to limit access by ip then you could use iptables or nginx rules.