WordPress.org

Ready to get started?Download WordPress

Forums

ecSTATic
[resolved] understanding the whitelist (14 posts)

  1. wp.Man
    Member
    Posted 1 year ago #

    so, i added /wp-login.php as the REQ URI token and set the kill flag to kill all requests to that URI

    than i added my IP range in CIDR format and set the WL flag

    log off, log on... i killed myself :)

    wondering why i clobbered myself since it is my understanding that the whitelist supersedes the kill list?

    http://wordpress.org/extend/plugins/ecstatic/

  2. MikeSoja
    Member
    Plugin Author

    Posted 1 year ago #

    The program tries to convert CIDR to its own format, but some ranges cannot be converted. If you have one of those ranges, you may have to input two ranges in the ecSTATic XXX.XXX.0-127.* format. Check to see how yours ended up.

    So, how did you get back in?

  3. wp.Man
    Member
    Posted 1 year ago #

    ok. is this a valid range...
    111.111.1-10.*

    or do i have to...
    111.111.1-10.1-255

    to get back in i renamed the plugin folder > log on > renamed plugin folder to original > deleted the offending entry -- simpler than phpMyAdmin i guess :)

  4. MikeSoja
    Member
    Plugin Author

    Posted 1 year ago #

    The first one is good, the second one won't work.

    I just tried it as you said, and the Whitelist ruled.

    I got green stars for scores as I logged in, but the popup score said I should have been killed. The WNKS entry for my IP range showed multiple hits. I turned off the IP whitelist and was 403'd at the login form.

    The WNKS table should show hits from your IP if the token and type are set correctly.

  5. wp.Man
    Member
    Posted 1 year ago #

    hi Mike
    got thinking a bit about this and wondering if you can add better support for the CIDR format?

    would like to be able to add ip ranges in this format without having them being converted in the WNKS list, as well as edit existing entries using this format

    this would also clear up the problem as described in my 1st post

    so i guess it's a matter of whether you are able to accept the CIDR format without having to do the conversion i guess

  6. MikeSoja
    Member
    Plugin Author

    Posted 1 year ago #

    I'll have to look up how to see if an IP is within a CIDR range. For all I know it's simpler than the way I do it.

  7. MikeSoja
    Member
    Plugin Author

    Posted 1 year ago #

    It is possible to mix ecSTATic ranges and CIDR types in the WNKS list (not possible right now, but theoretically.) The table parser will have to have a branch added for CIDR checks, and while the array loading would be quicker, the compare function would be slightly slower.

    It's doable without too much hard figuring, but I may have to prioritize. :)

  8. MikeSoja
    Member
    Plugin Author

    Posted 1 year ago #

    Actually, I pretty much just coded it up.

    No testing, yet.

    I'll have to turn off the CIDR converter...

    It worked!

  9. wp.Man
    Member
    Posted 1 year ago #

    cool!
    guess i owe you a donation by now :)

    hmmm... i couldn't find a donation link on your website
    can you point me in the right direction?

    you sure get around in your kayak! Susquehanna eh? my neck of the woods

  10. MikeSoja
    Member
    Plugin Author

    Posted 1 year ago #

    It's the thought that counts. I'll get a PayPal link up one of these days.

    I made so many changes the last two days I'm going to have to give it a hard look over, but should have version 0.985 up by late afternoon, or evening.

    Used to get around in the kayak. Now, it's pretty much limited to a five mile radius from the home port.

    Pennsylvania is a great state, outdoors-wise. Haven't been up that way in at least five years. I-81 sucks (though it gets you there) and Scranton seems to harbor a lot of spammers, but if you get out in the country, it's beautiful.

  11. MikeSoja
    Member
    Plugin Author

    Posted 1 year ago #

    New version is up! Let me know if things work.

  12. wp.Man
    Member
    Posted 1 year ago #

    something get messed up in the versioning?

    WP doesn't inform of an available update and instead tells me "Newer Version (0.9841) Installed"

    i'll update manually, but just wanted to let you know :)

  13. MikeSoja
    Member
    Plugin Author

    Posted 1 year ago #

    The versioning looks okay, and didn't hiccup last night. There were a couple stray files in the main folder, but they've been there for a couple years. Deleted 'em, see if it makes a dif. I'll give it a few minutes, and then recommit the whole thing to a new version.

  14. wp.Man
    Member
    Posted 1 year ago #

    0.986 updated as expected

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.