1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

IP-based discouragement only for guests possible?

Discussion in 'XenForo Questions and Support' started by Spenser, Jul 1, 2011.

  1. Spenser

    Spenser Active Member

    Is it possible to activate discouragement for a certain ip range, but not for registered users that use these addresses?

    We have a user we want to discourage. This user always uses a certain address range. We also have users we don't want do discourage but use the same range.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    ACP -> Users -> Discouraged IP Addresses

    If you Discourage an IP range then everyone using that range will be affected.

    Why don't you just discourage the user?
    It won't make any difference which IP address they use then.
     
  3. Spenser

    Spenser Active Member

    The user doesn't use his account. He posts anonymously.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    In that case all you can do is discourage each IP address they use.
     
  5. Spenser

    Spenser Active Member

    He is a DSL customer. The address changes at least every 24 hours and every time he reconnects. So this won't work.

    My idea is, that user account settings override ip settings. So you can block a whole IP range without blocking normal users.
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    What happens when you want to IP discourage registered users?

    How will the system know when to apply and not apply the discouragement to IP addresses?
     
  7. Kier

    Kier XenForo Developer Staff Member

    Wouldn't this block legitimate users when they are logged out? How would they then log in?
     
  8. Spenser

    Spenser Active Member

    Indeed.
    But they will have a chance to log in (if the discouragement isn't set too naughty).

    I don't see a way to discourage anonymous users that come from certain ip ranges without harming registered users from the same range if user specific settings don't override ip settings.
     
  9. James

    James Well-Known Member

    that's because you can't. you could create an add-on to automatically discourage this user based on criteria.. but you'd need criteria that could always identify this user.
     
  10. Spenser

    Spenser Active Member

    I know that identification of this user is not bullet-proof, but "ip-range x AND guest" would do the trick with little collateral damage.
     
  11. Brogan

    Brogan XenForo Moderator Staff Member

    Your registered members would soon get tired if their IP address happened to fall within that range.
    What if they just want to browse the site without logging in?
     
    Kier likes this.
  12. James

    James Well-Known Member

    Good suggestion
     

Share This Page