how to only allow access for localhost

This is a discussion on how to only allow access for localhost within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, Is it possible to set up Apache to only allow localhost access to my web files so no one ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-19-2003
laurie
 
Posts: n/a
Default how to only allow access for localhost

Hi,
Is it possible to set up Apache to only allow localhost access to my web files so no one else can gain access? Reason is I am
developing some web pages but my computer is always online so I dont want anyone being able to find a web site here when Apache is
started. I have Windows XP.
Thanks
Laurie

  #2 (permalink)  
Old 07-19-2003
Janusz Jasinski
 
Posts: n/a
Default Re: how to only allow access for localhost

Just don't allow access on those ports

Zonealarm does it pretty well, even when trying to get access to the outside
world it stopped me!


  #3 (permalink)  
Old 07-19-2003
patpro
 
Posts: n/a
Default Re: how to only allow access for localhost

In article <LY9Sa.899$Ai3.411@newsfep4-winn.server.ntli.net>,
"laurie" <lawr_1@hotmail.com> wrote:

> Is it possible to set up Apache to only allow localhost access to my web
> files so no one else can gain access? Reason is I am
> developing some web pages but my computer is always online so I dont want
> anyone being able to find a web site here when Apache is
> started. I have Windows XP.



use the directive BindAddress in httpd.conf, change the * by 127.0.0.1
and you're done.

patpro
  #4 (permalink)  
Old 07-21-2003
laurie
 
Posts: n/a
Default Re: how to only allow access for localhost

Thats' great.
I've added Listen 127.0.0.1:80. I assume this means Apache is only listening out for 127.0.0.1 on port 80 which is exactly what I
want.

I didnt think about the firewall thing. Thats an idea.

Thanks.

Laurie



"patpro" <patpro@elena.patpro.net> wrote in message news:patpro-BC5E28.14201619072003@biggoron.nerim.net...
In article <LY9Sa.899$Ai3.411@newsfep4-winn.server.ntli.net>,
"laurie" <lawr_1@hotmail.com> wrote:

> Is it possible to set up Apache to only allow localhost access to my web
> files so no one else can gain access? Reason is I am
> developing some web pages but my computer is always online so I dont want
> anyone being able to find a web site here when Apache is
> started. I have Windows XP.



use the directive BindAddress in httpd.conf, change the * by 127.0.0.1
and you're done.

patpro

  #5 (permalink)  
Old 07-21-2003
patpro
 
Posts: n/a
Default Re: how to only allow access for localhost

In article <nOOSa.2015$l63.25352@newsfep4-glfd.server.ntli.net>,
"laurie" <lawr_1@hotmail.com> wrote:

> Thats' great.
> I've added Listen 127.0.0.1:80. I assume this means Apache is only listening
> out for 127.0.0.1 on port 80 which is exactly what I
> want.


Apache will listen to whatever BindAddress AND Listen are set to.
If BindAddress is set to "*" and Listen is set to "127.0.0.1", your
server will not be limited to localhost

patpro
  #6 (permalink)  
Old 07-21-2003
laurie
 
Posts: n/a
Default Re: how to only allow access for localhost

I don't have a BindAddress in my httpd.conf file. Only Listen. I assumed Listen is "binding the address".
Maybe it's different depending on Apache version? I have 2.0.43.
Here's my Listen section.

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 127.0.0.1:80



"patpro" <patpro.pouet@archange.fr> wrote in message news:patpro.pouet-7DA479.12050521072003@news.wanadoo.fr...
In article <nOOSa.2015$l63.25352@newsfep4-glfd.server.ntli.net>,
"laurie" <lawr_1@hotmail.com> wrote:

> Thats' great.
> I've added Listen 127.0.0.1:80. I assume this means Apache is only listening
> out for 127.0.0.1 on port 80 which is exactly what I
> want.


Apache will listen to whatever BindAddress AND Listen are set to.
If BindAddress is set to "*" and Listen is set to "127.0.0.1", your
server will not be limited to localhost

patpro

  #7 (permalink)  
Old 07-21-2003
patpro
 
Posts: n/a
Default Re: how to only allow access for localhost

In article <4sRSa.2090$l63.26713@newsfep4-glfd.server.ntli.net>,
"laurie" <lawr_1@hotmail.com> wrote:

> I don't have a BindAddress in my httpd.conf file. Only Listen. I assumed
> Listen is "binding the address".
> Maybe it's different depending on Apache version? I have 2.0.43.
> Here's my Listen section.


> # Change this to Listen on specific IP addresses as shown below to
> # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
> #
> #Listen 12.34.56.78:80
> Listen 127.0.0.1:80



well, looks like Apache 2.x said goodbye to BindAddress, not that bad ;)

patpro
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:43 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0