Apache Server configuration support - retrieving restricted IP from database for apache2

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2007 > retrieving restricted IP from database for apache2





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author retrieving restricted IP from database for apache2
daugavpils@gmail.com

2007-01-21, 7:23 pm

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

Mark

2007-01-22, 7:21 am

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 webservertalk.com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.webservertalk.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com