Note to AJ: Blocking IP addresses

Events happening in the community are now at Drupal community events on www.drupal.org.
jdwalling's picture

AJ,

After our last Seattle meeting I came across this method for blocking IP and host addresses:

administer > access control > access rules > add rule

Set up username and e-mail address access rules for new and existing accounts (currently logged in accounts will not be logged out). If a username or e-mail address for an account matches any deny rule, but not an allow rule, then the account will not be allowed to be created or to log in. A host rule is effective for every page view, not just registrations.

Access type:
( ) Allow
(x) Deny

Rule type:
( ) Username
( ) E-mail
(x) Host
Mask: *
[208.114.158.128] <----- example 1
[208.114.158.1__] <----- example 2
[208.114.158.%] <----- example 3
[%spambot.com] <------ example 4

%: Percent matches any number of characters, even zero characters.
_: Underscore matches exactly one character.

(Masks can be used for any one of the 3 rule types.)

Cheers,
John Walling

Seattle

Group organizers

Group events

Add to calendar

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week