|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
>> 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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > dynamic access control list |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|