diff --git a/Pages/Contact.cshtml.cs b/Pages/Contact.cshtml.cs index 9cccb97..f99535d 100644 --- a/Pages/Contact.cshtml.cs +++ b/Pages/Contact.cshtml.cs @@ -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(); + 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"); diff --git a/notes b/notes index 8c94615..bdd9959 100644 --- a/notes +++ b/notes @@ -17,7 +17,7 @@ $Profit dotnet publish -c Release -o ./../publish/ --no-self-contained -r linux-x64 copy up to server -.NET Core apps: /var/aspnetcore +.NET Core apps: /srv/coreapps/contact , then to restart the service do this: systemctl status kestrel-contact.service