Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 15th, 2002, 02:14 AM
hbentel hbentel is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 6 hbentel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question dynamic access control list

Is it possible to have a dynamic list of ip addresses (that is, a list that grows and shrinks independently based on some other input) in a file somewhere that apache checks for every access? ANd I don't want to restart apache every time a new ip is added or old one removed.

I guess(wild one) it can be done with a perl script or something, but I have no idea how...

anyone?

thx

Reply With Quote
  #2  
Old July 15th, 2002, 05:33 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It's possible with mod_rewrite here but you still need to write a script to append additional IPs to your list.
You also can use .htaccess simply by modifying the "deny" line and append the new IP to the end of line.
For Perl question go ask people in Perl forum, not here though.

Reply With Quote
  #3  
Old July 16th, 2002, 09:28 AM
hbentel hbentel is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 6 hbentel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ok, but by using mod_rewrite, does apache have to restart for every time an external change takes place for it to take effect?
Or will it compare against a (as I hopfe: list of ips) every time.

Reply With Quote
  #4  
Old July 16th, 2002, 09:01 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> does apache have to restart for every time

No. You asked for dynamic list that's why I pointed you to mod_rewrite.

>> Or will it compare against a (as I hopfe: list of ips) every time

Getting Apache to work with access list is one thing. Writing a script to add IPs to your list is another thing.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > dynamic access control list


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT