retrieving restricted IP from database for apache2

This is a discussion on retrieving restricted IP from database for apache2 within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi , I want to make Apache2 check user IP on the fly and restrict access if IP does not match ...


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 01-21-2007
daugavpils@gmail.com
 
Posts: n/a
Default retrieving restricted IP from database for apache2

Hi ,

I want to make Apache2 check user IP on the fly and restrict access if
IP does not match existing client (and redirecting to a page explaining
why has it happened) .There is no problem with dynamic DNS since all
clients are expected to use static IPs.Ideally I would like to keep IPs
in the external mysql database and query it every time request comes
because we use this list for several servers.I checked this newsgroup
and Googled but could not find that anyone has done it.
Has anybody done it ?Or maybe I can find more elegant solution?

thank you in advance
Sergei

  #2 (permalink)  
Old 01-22-2007
Mark
 
Posts: n/a
Default Re: retrieving restricted IP from database for apache2

daugavpils@gmail.com wrote in news:1169408040.597631.282710
@m58g2000cwm.googlegroups.com:

> Hi ,
>
> I want to make Apache2 check user IP on the fly and restrict access if
> IP does not match existing client (and redirecting to a page explaining
> why has it happened) .There is no problem with dynamic DNS since all
> clients are expected to use static IPs.Ideally I would like to keep IPs
> in the external mysql database and query it every time request comes
> because we use this list for several servers.I checked this newsgroup
> and Googled but could not find that anyone has done it.
> Has anybody done it ?Or maybe I can find more elegant solution?
>
> thank you in advance
> Sergei
>
>


Do you have access to the httpd.conf? If so then you can do it with the
Allow/Deny from statements in a <Directory> container. It wouldn't be in
a SQL database, but in a text file.




--

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  #3 (permalink)  
Old 01-22-2007
daugavpils@gmail.com
 
Posts: n/a
Default Re: retrieving restricted IP from database for apache2

Thank you Mark,

I do have full access to the server.I am not sure though that you
can use ip list from file in Allow from directive:
http://httpd.apache.org/docs/2.0/mod/mod_access.html .Please correct me
if I am wrong
Probably another way could be done using ,module like mod_ipenv, but
it is not in debian-stable.

Sergei

Mark wrote:
> daugavpils@gmail.com wrote in news:1169408040.597631.282710
> @m58g2000cwm.googlegroups.com:
>
> > Hi ,
> >
> > I want to make Apache2 check user IP on the fly and restrict access if
> > IP does not match existing client (and redirecting to a page explaining
> > why has it happened) .There is no problem with dynamic DNS since all
> > clients are expected to use static IPs.Ideally I would like to keep IPs
> > in the external mysql database and query it every time request comes
> > because we use this list for several servers.I checked this newsgroup
> > and Googled but could not find that anyone has done it.
> > Has anybody done it ?Or maybe I can find more elegant solution?
> >
> > thank you in advance
> > Sergei
> >
> >

>
> Do you have access to the httpd.conf? If so then you can do it with the
> Allow/Deny from statements in a <Directory> container. It wouldn't be in
> a SQL database, but in a text file.
>
>
>
>
> --
>
> ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
> http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption =----


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 08:18 PM.


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