Removed

"IP addresses listed here are blocked from your site before any modules are loaded. You may add IP addresses to the list, or delete existing entries."

- Because, the information that ip adresses are blocked before any modules are loaded, only holds value to people who understand the implications of not doing that.
- I may add and delete? Cool, but I think people will understand that.

"Enter a valid IP address."

- What else?

Changed

The field length from 64 to 32, unless the ip range of IP adresses grows extremely in the next 3 years. I don't see the need for it to be that long?

Want to change
I want to move the button beside the field, and move the list up. Not sure yet how to do this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ekes’s picture

Makes sense to me. What about a title on the list of blocked IP addresses: 'Already blocked addresses', or is that obvious enough? Also is 'remove' better than 'delete' for the option against the blocked IP addresses?

ekes’s picture

oh IPv6 will need the extra characters :)

Bojhan’s picture

Oke, I'll change the length (to 42) - but as far as I understand, is it unable to handle IPv6 atm. And try to incorporate the title of the list. Not sure what the standard is on remove vs delete.

Bojhan’s picture

Status: Active » Needs review
FileSize
2.36 KB

There we go

Status: Needs review » Needs work

The last submitted patch failed testing.

Bojhan’s picture

FileSize
2.42 KB

fixing test

stBorchert’s picture

Status: Needs work » Needs review

this one needs review, too

Dries’s picture

- Looks good to me. Should 'Save' become 'Add'? If feels like 'Add' provides a little bit more guidance.

- It might still be useful to describe why you want to block an IP address and what it means.

Anonymous’s picture

i'm subscribing for the problem of form layout styles... there are other forms in drupal admin where there's only one form element and a submit button, but 'container-inline' isn't a good option because of what it does to labels and descriptions.

Bojhan’s picture

@Dries - yup - changing to add. I am not sure if we want to describe why you want to block an IP address. Because you can't describe the why, without explaining the what of IP addresses - which will become pretty technical.

I am still not able to do the form repositioning

Status: Needs review » Needs work

The last submitted patch failed testing.

markus_petrux’s picture

In response from first post comment "The field length from 64 to 32, unless the ip range of IP adresses grows extremely in the next 3 years. I don't see the need for it to be that long?"

It seems it will happen. Please, see references here:

- #475140: Make sure Drupal provides support for IPv6

aspilicious’s picture

Status: Needs work » Needs review
FileSize
1.18 KB

Let me try helping bohjan.

@ #12

IpV6 consist of 128 bits, not 128 digits....
My Ipv6 for example looks like this: 2001:0:d5c7:a2d6:cf9:39e:ab3d:a90b
Shorten the field length isn't a problem.
I changed the maxlength to 40.
I also can change it to 48 or something else greater then 35.

I also changed Save to Add...

Let's give it a try...

Status: Needs review » Needs work

The last submitted patch, IP-config-cleanup.patch, failed testing.

aspilicious’s picture

FileSize
4.76 KB

Stupid tests... XD

aspilicious’s picture

Status: Needs work » Needs review

start bot

Status: Needs review » Needs work

The last submitted patch, IP-config-cleanup-15.patch, failed testing.

aspilicious’s picture

Status: Needs work » Needs review
FileSize
4.73 KB

another try...

Status: Needs review » Needs work

The last submitted patch, IP-config-cleanup-17.patch, failed testing.

aspilicious’s picture

FileSize
4.75 KB

Maybe this works (stupid me)

aspilicious’s picture

Status: Needs work » Needs review

start bot

joachim’s picture

Status: Needs review » Needs work

I don't see the point of "before any modules are loaded". It's just confusing.

"You may add IP addresses to the list, or delete existing entries" is just stating the obvious.

On the other hand, we could explain just what 'blocking' means -- what would a blocked IP address see? a 404? WSOD? I have no idea.

Bojhan’s picture

Acces denied, I'd think. I'd be fine with just explaining that, do you have a sentence perhaps?

joachim’s picture

FileSize
29.5 KB

Here's what a banned IP sees.
(Interesting to note that a banned IP still sees the site name and page title though... is that a bug?) (oh wait I think that was my browser caching!)

So how about:

'IP addresses listed here are blocked from accessing your site, and instead see a brief message that they are banned.'

While we're at it, I'm wondering if we should:
- change 'Save' to 'block'
- change the the 'delete' op to 'unblock'

Don't want to be deleting teh internets! ;)

Bojhan’s picture

We should probally keep, it to "Save" - we dont say "Create Article" either.

We can probally remove the "and instead see a brief message that they are banned." part too - not sure what that adds? Since I am left wondering what kind of brief message then? The rest seems good. If you can file a patch for that, lets put this to RTBC.

joachim’s picture

> We can probally remove the "and instead see a brief message that they are banned." part too - not sure what that adds?

It gives some kind of an indication of what 'banning' entails.

Bojhan’s picture

I dont think that is necessary, it reveals no useful information other then "some message".

anarcat’s picture

Issue tags: +ipv6

tagging with "ipv6", as this touches it a bit.

for the record, 40 is a proper length limit for an IP.

anarcat’s picture

note that I submitted a patch to fix the database end of the IPv6 support thing. Maybe we want to isolate the ipv6 changes there. http://drupal.org/node/475140#comment-2554696

anarcat’s picture

Status: Needs work » Needs review
FileSize
6.12 KB

I ported the patch to head (it didn't apply anymore) and fixed the message a bit. It now says:

IP addresses listed here are blocked from your site. Blocked addresses are completely forbidden from accessing the site and instead see a brief message explaining the situation.

I hope that is sufficient for you guys, no need to go bikeshedding around this message for nothing. ;) We can always change it later too.

joachim’s picture

+1 for the message text.

marcingy’s picture

Issue tags: -Usability, -ui-text, -ipv6

#30: issue_523286_cleanupblock.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +Usability, +ui-text, +ipv6

The last submitted patch, issue_523286_cleanupblock.patch, failed testing.

AaronBauman’s picture

Status: Needs work » Needs review
FileSize
6.79 KB

Rerolled #30 @ HEAD.
Most recent failures seem to be unrelated to this issue,
but most recent patch has one hunk that failed to apply.

Dries’s picture

Committed to CVS HEAD. This doesn't complete all of Bojhan's suggestions so I'm setting this back to code needs work for follow-up patches.

Dries’s picture

Status: Needs review » Needs work
Bojhan’s picture

Assigned: Bojhan » Unassigned

  • Dries committed 9e0af44 on 8.3.x
    - Patch #523286 by aspilicious, Bojhan, anarcat, aaronbauman: cleanup IP...

  • Dries committed 9e0af44 on 8.3.x
    - Patch #523286 by aspilicious, Bojhan, anarcat, aaronbauman: cleanup IP...

  • Dries committed 9e0af44 on 8.4.x
    - Patch #523286 by aspilicious, Bojhan, anarcat, aaronbauman: cleanup IP...

  • Dries committed 9e0af44 on 8.4.x
    - Patch #523286 by aspilicious, Bojhan, anarcat, aaronbauman: cleanup IP...

  • Dries committed 9e0af44 on 9.1.x
    - Patch #523286 by aspilicious, Bojhan, anarcat, aaronbauman: cleanup IP...