You are here

function ip_ranges_deny_access in IP Ranges 7

Same name and namespace in other branches
  1. 7.2 ip_ranges.module \ip_ranges_deny_access()

Handles denied users.

Prints a message and exits if access is denied.

1 call to ip_ranges_deny_access()
ip_ranges_boot in ./ip_ranges.module
Implements hook_boot().

File

./ip_ranges.module, line 77

Code

function ip_ranges_deny_access() {
  header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden');
  print 'Sorry, ' . check_plain(ip_address()) . ' has been banned.';
  exit;
}