Banned items question

iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
Question about Banned Items.

If I ban an email domain, say aol.com. What behavior does that have on existing users?

What I'm trying to do is ban all new signups for users attempting to use "aol.com" email addresses. However, I dont want it to affect existing users.

Please advise, thank you!
updated by @ilovehousemusic: 09/12/14 04:44:16PM
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
This includes password reset requests, and newsletter emails.
michael
@michael
10 years ago
7,744 posts
Here's some docs for the jrBanned module:

"jrBanned"
https://www.jamroom.net/the-jamroom-network/documentation/modules/1950/jrbanned

Let me know if there's anything else that should be outlined on that page.

The banned module doesn't have an option to ban a domain.

It also doesn't have a retro-active feature to go back over stuff that existed before the module was installed.

So if there was a word that got banned but already existed, then it stays in the post until it is updated.
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
I thought you could ban a domain?
michael
@michael
10 years ago
7,744 posts
I haven't used the module much. If there is a way, i didn't see it. If you know how to, let me know and I'll take a look and get some docs up.
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
You could try a bit of jquery to check for the banned address on blur. Something like this might get you started:
<script>
jQuery(document).ready(function() {

	$('#user_email').on("blur",function() { 
		var inputVal = $(this).val(); // the email input value
		var bannedAddress= /aol.com/; // the regex to test
		if(bannedAddress.test(inputVal)) {
			alert("No AOL Email Addresses");
			$(this).val(""); // remove the email from the input
		}
	});

});
</script>



--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 07/27/14 06:14:49AM
brian
@brian
10 years ago
10,148 posts
Looks like we need to add an "email" option to the banned module - shouldn't be hard to do, so we'll get that on our todo.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
Thanks for this! I see the new update.

So, what is the proper syntax to ban a domain?

Thanks!
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
Hi, I found the info using the "?" icon. But, when I enter "@domain.com" it gives me this error:

"You have entered an invalid item value - please enter a valid email address"

Please advise thanks!
paul
@paul
10 years ago
4,330 posts
I think domains have to be in full - http://domain.com


--
Paul Asher - JR Developer and System Import Specialist
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
How would that work for a domain such as "virginmedia.blackberry.com"?

What I mean is, I'm processing users from my mailgun bounces section. Any email that has bounced, I'm just deleting the user/profile from my system. In the example above, I want to ban all "blackberry.com" addresses. Including all the variants - i'm seeing (virginmedia.blackberry.com, mtn.blackberry.com, etc).
updated by @ilovehousemusic: 08/06/14 06:54:15AM
brian
@brian
10 years ago
10,148 posts
Make sure you're running the latest Banned Items module, and create a new "email" banned item with "blackberry.com" as it's entry.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
Thanks @Brian - this is what I'm seeing. Let me know!

https://www.youtube.com/watch?v=Qf4bSGZ2QuA
michael
@michael
10 years ago
7,744 posts
Thanks for the great explanation. Really superb.

Checking this out now.
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
@Michael - thanks man. I've found that I get answers faster and am able to show what the problem is by just shooting a screen cap video. I bought this program just for that suprisingly...
michael
@michael
10 years ago
7,744 posts
lol. Great to see it getting put to some use. :)

It really helps out here to know what the issue is.

I've got it fixed up in the next version of the module 1.0.4. Just need to get a second pair of eyes over the code then it will appear as an upgrade in the marketplace.
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
I put it to good use when i first got it a few months back. Maybe knocked out about 10 different issues I was having. Responsible for a few bug fixes (pats self on back)... but I'm sure they would have been found anyways.

Curious, what was the issue?

Looking forward to the update!
brian
@brian
10 years ago
10,148 posts
It was an incorrect jrCore_checktype() call in the code - that's been fixed and I will be pushing a new release here in just a few.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 08/08/14 08:48:29AM
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
Thanks Brian - So I just downloaded it and will test. I might have a few more questions but will start with this...

B
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
Question - when attempting to sign up for the site, and a user is attempting use a banned email domain, can Jamroom spit out an error message to the user that specifically says "Sorry aim.com is not an allowed email address"

or something to that effect. I guess I'm wondering if you can give the end user some indication that they should use a different email address, instead of the standard error message.


Thoughts?
brian
@brian
10 years ago
10,148 posts
When it comes to banned items, usually the best bet is to tell the user that the name or address is already taken - otherwise if you say "this item is banned", then it encourages users to try to circumvent that restriction.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,148 posts
Just for my own curiosity, why would you ban an entire domain?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
iLoveHouseMusic
iLoveHouseMusic
@ilovehousemusic
10 years ago
517 posts
I'm processing my bounce backs from the last newsletter I sent (14,000 emails), and i'm just over all the bogus aol.com, aim.com and blackberry.com emails that are "user does not exist" type bounces - 850 bounces.

I'm cross referencing those emails w/ the user/profile and noting the last login date, and deleting anyone that basically hasn't logged in over a year.

There are also some domains that seem sketchy to me - 163.com, 37.com

I'm also noticing inactivity from a lot of .edu domains. Presumably students who are no longer in school.

I'm working towards enabling the oneall login/signup on my site - which hopefully most people will choose facebook, twitter, or gmail to authenticate.

Probably more work than I need to do, but I'm doing some much needed clean up before I move forward.

Thanks!

Tags