I'd like to allow anonymous from anywhere, while limiting authenticated to one or few IP blocks.
Can this be done in drupal 6?
I'd like to allow anonymous from anywhere, while limiting authenticated to one or few IP blocks.
Can this be done in drupal 6?
This is absolutely a hack, but you could add something like the following in the login module/script (or include it) thus preventing those not in the IP range from accessing the login module:
Looks like there is a feature request pending, however, a developer has already put together some code which may work: Support for role based IP restriction
Check "access rules" in your control panel: admin/user/rules
Adding a rule and selecting "host" you can allow or deny access by a specified IP Address (tipically allow your range then deny everything else, no implicit deny here.) Unfortunatly this is a "global option" (not user or group based) so act carefully you can shut yourself out from your own site.