How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?
-
@JaredBusch said in How do I block anything after .com that is not a country code with a regular expression for e-mail?:
I don't even know WTF the title of this means.
After.com
means more shit after them
? Like this?[email protected]
@jareddoesntunderstandthetitle.com.*
but I need it to not block country codes as some of our doctors communicate internationally
@scott.com.ar is argentina. If this is a country we happen to communicate with I need to be able to exclude
How would you title this thread?
-
@wirestyle22 said in How do I block anything after .com that is not a country code with a regular expression in e-mail?:
@JaredBusch said in How do I block anything after .com that is not a country code with a regular expression for e-mail?:
I don't even know WTF the title of this means.
After.com
means more shit after them
? Like this?[email protected]
@jareddoesntunderstandthetitle.com.*
but I need it to not block country codes as some of our doctors communicate internationally
What about
.org
or.net
or.tokyo
or.tech
? These are all valid.What about
hotmail.co.jp
? It is not after.com
...WTF are you actually trying to accomplish here?
This just seems like a disaster. -
@wirestyle22 said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
How would you title this thread?
We aren't sure, as we need a clear goal. You are asking a technical question that doesn't have any obvious goal to accomplish.
-
@JaredBusch said in How do I block anything after .com that is not a country code with a regular expression in e-mail?:
@wirestyle22 said in How do I block anything after .com that is not a country code with a regular expression in e-mail?:
@JaredBusch said in How do I block anything after .com that is not a country code with a regular expression for e-mail?:
I don't even know WTF the title of this means.
After.com
means more shit after them
? Like this?[email protected]
@jareddoesntunderstandthetitle.com.*
but I need it to not block country codes as some of our doctors communicate internationally
What about
.org
or.net
or.tokyo
or.tech
? These are all valid.What about
hotmail.co.jp
? It is not after.com
...WTF are you actually trying to accomplish here?
This just seems like a disaster..jp would be excluded because it's a country code. I'd apply the same regex to .co .org, .net .tokyo.
-
The goal is when an e-mail is coming in from [email protected] EXCEPT country codes, they are blocked.
-
@wirestyle22 said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
The goal is when an e-mail is coming in from [email protected] EXCEPT country codes, they are blocked.
That's 100% different than the original question which was blocking the portion of a URL but keeping the email. We were flabbergasted that you wanted to keep spam coming in, but just alter URLs to look valid but be useless.
-
@wirestyle22 said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
The goal is when an e-mail is coming in from [email protected] EXCEPT country codes, they are blocked.
Simple answer is, if you could do this, every spam filter would do it automatically. They don't, because it can't be done reliably.
-
@scottalanmiller said in How do I block anything after .com that is not a country code with a regular expression in e-mail?:
@wirestyle22 said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
The goal is when an e-mail is coming in from [email protected] EXCEPT country codes, they are blocked.
Simple answer is, if you could do this, every spam filter would do it automatically. They don't, because it can't be done reliably.
So it's too broad? I do similar things to usernames such as:
from:.+<.*\..{2,}\..*\@
This blocks any e-mail that has two periods in the username but ignores it if it's a single character.
[email protected] would make it through.
[email protected] would not.It has reduced our spam by 95% and I've only seen 3 instances of false positives in 4 months of it being active.
-
@wirestyle22 said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
So it's too broad?
Yes, too broad to be reliable.
-
@wirestyle22 said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
It has reduced our spam by 95% and I've only seen 3 instances of false positives in 4 months of it being active.
The question is, how many false positives are okay?
-
@scottalanmiller said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
@wirestyle22 said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
It has reduced our spam by 95% and I've only seen 3 instances of false positives in 4 months of it being active.
The question is, how many false positives are okay?
You try to have as little false positives as possible while also having as little spam as possible. Can't prevent either 100%
-
@wirestyle22 said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
@scottalanmiller said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
@wirestyle22 said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
It has reduced our spam by 95% and I've only seen 3 instances of false positives in 4 months of it being active.
The question is, how many false positives are okay?
You try to have as little false positives as possible while also having as little spam as possible. Can't prevent either 100%
That's not really an answer. And yes, you can prevent the one 100%.
-
@scottalanmiller said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
@wirestyle22 said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
@scottalanmiller said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
@wirestyle22 said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
It has reduced our spam by 95% and I've only seen 3 instances of false positives in 4 months of it being active.
The question is, how many false positives are okay?
You try to have as little false positives as possible while also having as little spam as possible. Can't prevent either 100%
That's not really an answer. And yes, you can prevent the one 100%.
Exactly - don't filter, and you will have 0% false positives.
-
@Dashrender said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
@scottalanmiller said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
@wirestyle22 said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
@scottalanmiller said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
@wirestyle22 said in How do I block anything after .com that is not a country code with a regular expression for e-mail filtering purposes?:
It has reduced our spam by 95% and I've only seen 3 instances of false positives in 4 months of it being active.
The question is, how many false positives are okay?
You try to have as little false positives as possible while also having as little spam as possible. Can't prevent either 100%
That's not really an answer. And yes, you can prevent the one 100%.
Exactly - don't filter, and you will have 0% false positives.
Or block 100% and you have no spam
-
You will need to trigger the spam filters and get a list of every country domain.
-
What spam examples will this block?