I've installed a LAMP server locally and I want it to only be accessible from my own computer (not even my local network), only through loopback. Is this possible to do securely? If so, how?
The Listen directive in your config should be equal to Listen 127.0.0.1:80
grep Listen * -r
netstat -nat | grep 80
your ip address:80
Tell the server to only listen on 127.0.0.1 and ::1.
5 years ago