Khoros Atlas Logo

%3CLINGO-SUB%20id%3D%22lingo-sub-577246%22%20slang%3D%22en-US%22%3EHide%20%22sign%20in%22%20option%20for%20banned%20users.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-577246%22%20slang%3D%22en-US%22%3E%3CP%3EHide%20%22sign%20in%22%20option%20for%20banned%20users.%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%3F%20If%20yes%2C%20how%20can%20I%20implement%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor
Occasional Contributor

Hide "sign in" option for banned users.

Hide "sign in" option for banned users. 

Is it possible? If yes, how can I implement this?

0 Kudos
4 Replies 4
Highlighted
Honored Contributor Honored Contributor
Honored Contributor

Re: Hide "sign in" option for banned users.

Tricky question...

I am not sure if it would be because you would need a parameter in order to hide something from a banned user. And I think you only have those parameters about a user once they log in. Before that, they are simply anonymous users. You don't have anything to go on, so you can't hide the register/sign in option but this is me guessing. 

Now, I am curious to learn as well.

 

Good luck!
Wendy

Learning from others and helping where I can!
Community Passionista!
Reply
Loading...
Highlighted
Khoros Staff
Khoros Staff

Re: Hide "sign in" option for banned users.


@Wendy_S wrote:

Tricky question...

I am not sure if it would be because you would need a parameter in order to hide something from a banned user. And I think you only have those parameters about a user once they log in. 


This is exactly right if the user is banned based off of their username. The way the ban tool works makes this a slightly complicated question to answer. 

In short, the ban tool provides you a series of options to base the ban on: User Name, User ID, Email Address, and IP Address. Additionally, the logic of the ban can be controlled with the check box titled "Match any of the above criteria."

This allows for a few different scenarios. Imagine scenario #1, I have user who is banned based off of their User Name, IP Address, and Email Address, and I leave the Match Any Criteria box unchecked. The ban will only be in place once the system sees the specified User Name (only happens at login), the IP Address, and the Email Address. We call this an "And" ban. X and and Z all need to be true. If any of those items don't match the fields input during the ban, the ban doesn't hold. If User Name and Email Address are inputs in this kind of ban, it can only be assessed after sign in. 

Scenario #2, however, could potentially accomplish what you're looking to do. If I have the same inputs in my ban: User Name, IP Address, and Email Address but I do check the "Match Any Criteria" box, the ban is now an "Or" ban. X or or Z can be true and the ban holds. In this case, if the IP address is used as an input in the ban, the user is prevented from ever seeing the community at all, much less being able to sign in. The system triggers the ban message immediately upon seeing that IP address. 

I'd be remiss without mentioning that Scenario #2 should be used with a lot of caution. An IP based "Or" ban can be really powerful, but can also sometimes catch users you didn't intended to ban. Imagine that you've banned someone accessing the community from their workplace or university, one where they share their IP Address with a large number of people. If you tell the ban logic it can prevent access based solely off of an IP Address, anyone who happens to share that IP Address is also banned. This is usually an edge case, but it's worth being wary of. 

0 Kudos
Reply
Loading...
Highlighted
Occasional Contributor
Occasional Contributor

Re: Hide "sign in" option for banned users.

Hi, thanks for commitment.

The reason I'm asking this tricky question is that I got this solution adviced by Support in Case Portal.

I reported an issue where if banned user try to sign in/log in, he is redirected to blank page, "http status 403"Screenshot 2020-03-26 at 08.07.25.png

0 Kudos
Reply
Loading...
Highlighted
Honored Contributor Honored Contributor
Honored Contributor

Re: Hide "sign in" option for banned users.

Oh, but then that page is populated after a banned user tries to sign in, right? It is not like you are hiding the sign in option.

Perhaps there is a way to show a custom page when user logging in matches status = banned...

Learning from others and helping where I can!
Community Passionista!
0 Kudos
Reply
Loading...