Forum Moderators: phranque

Message Too Old, No Replies

Local Development Only

How do I keep everyone else out?

         

zedlander

3:37 pm on Jul 26, 2006 (gmt 0)

10+ Year Member



Hello,
I'm running Ubuntu Linux 6.06, and want to set up a local development environment. I got XAMPP running, but discovered that anyone could access it by entering my IP into a browser. I want to keep my internet connected, so I can browse, but I don't want any outside connections to Apache. How can I restrict it to localhost?

Thanks,
Trevor

bateman_ap

4:26 pm on Jul 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



got a firewall on your router? if so just block port 80. it won't effect internal traffic

Little_G

4:29 pm on Jul 26, 2006 (gmt 0)

10+ Year Member



Hi,

try something like:

 Order deny,allow
Deny from all
Allow from 127.0.0.1

In your httpd.conf in between the <Directory /> </Directory> tags.
Then restart Apache.

Andrew

zedlander

5:46 pm on Jul 26, 2006 (gmt 0)

10+ Year Member



My main problem was just finding the proper httpd.conf file, since it wasn't in the apache directory, it was in the xampp directory. Then, I changed Listen 80 to Listen 127.0.0.1:80, which I saw recommended somewhere else. Seems to be working now.

TXGodzilla

6:06 pm on Jul 26, 2006 (gmt 0)

10+ Year Member



Simple, install a firewall. If you are not familiar with working with ipchains, then buy a retail router (Netgear, Linksys, D-Link etc) and put a barrier between you and the Internet.

I am astounded you don't have some sort of protection in place between your computer & the Internet, especially if you are working with Linux.

Should we take bets on how long your Linux box will remain unmolested?