XF 2.1 Prevent Discouraged IPs from Login?

Dragonfruit

Well-known member
It's great it can be prevented from registering, but it would be helpful to prevent it from logging in as well. Is there any way it can be adjusted to work this way?
 
What about:
Ban the IPs. Go to Communication >> Notices, create a notice only banned members see. Say something like if you believe you are locked out by mistake please contact us with a link, etc.

That's exactly what we've done as of now as a workaround. But it's not ideal because we want the communication in the guest forum.
 
I'm happy to be corrected, but as far as I'm aware if you add them as discouraged IPs (ACP > Users > Discouraged IPs) it will only impact those who are registered already (not guests which are also spammers).

ACP > Users > Banned IPs however will work for both.

Then just set a ban reason "Suspected spammer - if incorrect please use our contact link". If they are banned they'll still see navigation buttons.

Not ideal if you want that communication in a guest forum, unless you setup email > thread creation (which is a bit messy).

EDIT:
Actually just tested here. If the IP is banned the user cannot log out, and even if they clear their cache they see nothing. BUT they can see your navigation buttons and use them when IP Banned. That might be one solution then.
 
Last edited:
Top Bottom