I have a web server installed on my Xubuntu 11.04 desktop. I use it for testing and learning. If I'm at a cafe I don't want anyone interacting with the server - which I assume they could when they know my ip.
Would this command only allow me to use the server on my laptop and prevent anyone else?
$ sudo iptables -A INPUT -s ! 127.0.0.1 -p http -j DROP