I'm setting up a LAMP stack on my local machine for testing. How do I make sure the web server is not remote accessible?
When setting up LAMP for testing at a local machine, how do I make sure it's not remote accessible?
security;lamp
I have a better approach to this:There is a Listen directive in apache that allows you to specify which ports and IP addresses you want apache to work with.For 100% security away from the outside world, use the following setting:Listen 127.0.0.1:80That IP address 127.0.0.1 represents localhost and is never accessible to anyone outside. Any outsider trying to access your site via that address will either get a bunch of errors or resources from their computer only.When using this setup, start your URLs with http://127.0.0.1 when running tests.