This commit is contained in:
2022-05-06 19:15:02 +00:00
parent b7f88a1d38
commit 75e1619803
2 changed files with 18 additions and 4 deletions

View File

@@ -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");

2
notes
View File

@@ -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