Wouldnt it be nice to have in the user/[uid]/ip-page also links to ban the IP address at hand?
so to
/admin/user/rules/add/113.106.194.221/host

Comments

danielb’s picture

Where did you get that path from? Doesn't go anywhere for me. I assume it's something in the Rules module or a related module?

The only IP blocking I know of is admin/config/people/ip-blocking

eiland’s picture

Welcome, bienvenue to Drupal 6.

danielb’s picture

no idea what you said, but Drupal 6, gotcha...

danielb’s picture

Status: Active » Patch (to be ported)

I've added the link to Drupal 6.

I wanna do something better with D7 by integrating with the page provided by system_ip_blocking()
Maybe even change that page to display more like the people or content pages with a little checkbox and a form and a hook to add operations

eiland’s picture

Thats what I call quick.

I'm now also making a view which takes an IP address as argument to filter the access log... so see what an IP address has been up to.... another useful addition?

eiland’s picture

Issue summary: View changes

ow, just a small thing, it should be
l(t('Ban IP'), 'admin/user/rules/add/' . $record['ip'] . '/host'),
instead of
l(t('Ban IP'), '/admin/user/rules/add/' . $record['ip'] . '/host'),
(mind the slash) otherwise you to ban on localhost.