GoAway is a dirt-simple, light-weight "Ban By IP" module for Drupal 6. It works by redirecting offending anonymous users to a page or URL specified by the admin. The module possesses the following features:
- Separate permissions for (1) settings, (2) banning, and (3) unbanning
- Either a local page or a remote URL may be used as the redirect destination
- Adds display of IP address to anonymous comments for easy tracking & copying (only to users with 'ban' permission)
GoAway fills a void in Drupal 6, especially for high-traffic sites which can't (or don't want to) bear the combined load of the Statistics and Tracker modules. The entire purpose was to make IP banning as easy as editing a comment. As simple as the module is, I think it might become fairly popular, since I have already had several clients request this functionality.
I'm ready any time you are ;-)
LVX
TF
Tod Foley
As If Productions
http://www.asifproductions.com
Email: tod@asifproductions.com
Drupal.org: http://drupal.org/user/52428
Portfolio: http://www.asifproductions.com/drupal
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | goaway_090912-2.zip | 16.75 KB | As If |
| #6 | goaway.tar_.gz | 6.96 KB | As If |
| #4 | goaway_090912.zip | 2.54 KB | As If |
| #1 | goaway.zip | 2.64 KB | As If |
Comments
Comment #1
As If commentedComment #2
avpadernoI am adding the review tag.
Comment #3
avpadernoThat line should be removed.
$may_cacheis not defined.The string is not translatable.
The code should use a placeholder, as the previous call to
watchdog()did.The schema descriptions should not be passed to
t()anymore.Comment #4
As If commentedThank you. All suggested changes have been made. Also rewrote the install file. Here's the new version...
Comment #5
avpadernoThe error message should be something clearer; saying that an error has occurred doesn't help much.
Comment #6
As If commented1. - I believe the word is DOH!
2. - Good point. Also added a preg_match conditional for IP format.
Here's the result. Heading to CVSland now...
Comment #7
As If commentedHmm. That underscore (tar_) isn't there on my local copy, but it wrecks the tarball. Ok here is a zip version...
Comment #8
avpadernoTo complete the information I have given, I will report that
base_path()is used when the path is used to build a URL returned to the browser.The underscore is added by Drupal, as the double extension could be used to hide the true type of the file (especially in Windows where the extension is normally hidden, and the user would see a
.jpg, when the extension is really.jpg.exe.Comment #11
avpaderno