GoAway (Drupal Module)

GoAway is a dirt-simple, light-weight "Ban By IP" module for Drupal 6 and 7. It works by redirecting offending anonymous users to a page or URL specified by the admin. The module possesses the following features:

  • Separate role-based permissions for Settings, Banning, and 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 displayed 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 of GoAway is to make IP banning as easy as editing a comment.

  • Department:
    Project Types:


    You seem to have a bug. I am seeing large numbers of:

    Undefined index: REDIRECT_URL in goaway_init() (line 11 of /var/www/vhosts/xxx/httpdocs/sites/all/modules/goaway/goaway.module).

    The line is:
    if ($_SERVER['REDIRECT_URL'] != $jumpto) {

    and REDIRECT_URL does not exisit in $_SERVER. I suspect it's necessary to use 'REQUEST_URI'.

    I'm running on CentOS 6.6 (Final) / Apache/2.2.15 / php 5.3.3. Obviously in this combination 'REDIRECT_URL' is not being set...

    Wow! It's been a long time since that module was upgraded, meaning that code has been in place for... years. Yes, $_SERVER['REDIRECT_URL'] is only available on some servers. Use $_SERVER['REQUEST_URI'] instead.