This commit is contained in:
@@ -66,10 +66,24 @@ namespace contact.Pages
|
||||
|
||||
|
||||
|
||||
//fuck those Russian spammers
|
||||
if (Contact.Company.ToLowerInvariant() != "google")
|
||||
SendMail();
|
||||
//fuck those spammers
|
||||
//2022-05-06 changes to get rid of jumbo lead magnet spammer but still force him to pay someone to manually enter the stuff
|
||||
//ideally it should read from a text file here but this is a quickie fix while Joyce is on important viha phone call
|
||||
var blocks = new List<string>();
|
||||
blocks.Add("google");
|
||||
blocks.Add("jumboleadmagnet");//<--fuck this guy in particular, keeps spamming
|
||||
var companyname = Contact.Company.ToLowerInvariant();
|
||||
foreach (string s in blocks)
|
||||
{
|
||||
if (companyname.Contains(s))
|
||||
{
|
||||
goto skipspam;
|
||||
}
|
||||
}
|
||||
|
||||
SendMail();
|
||||
|
||||
skipspam:
|
||||
//TODO: go to a successful submit page on the ayanova site
|
||||
//return Redirect("/confirm.html");//sample quickie page I made up
|
||||
return Redirect("https://ayanova.com/confirmed.htm");
|
||||
|
||||
Reference in New Issue
Block a user