This commit is contained in:
@@ -66,10 +66,24 @@ namespace contact.Pages
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
//fuck those Russian spammers
|
//fuck those spammers
|
||||||
if (Contact.Company.ToLowerInvariant() != "google")
|
//2022-05-06 changes to get rid of jumbo lead magnet spammer but still force him to pay someone to manually enter the stuff
|
||||||
SendMail();
|
//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
|
//TODO: go to a successful submit page on the ayanova site
|
||||||
//return Redirect("/confirm.html");//sample quickie page I made up
|
//return Redirect("/confirm.html");//sample quickie page I made up
|
||||||
return Redirect("https://ayanova.com/confirmed.htm");
|
return Redirect("https://ayanova.com/confirmed.htm");
|
||||||
|
|||||||
2
notes
2
notes
@@ -17,7 +17,7 @@ $Profit
|
|||||||
dotnet publish -c Release -o ./../publish/ --no-self-contained -r linux-x64
|
dotnet publish -c Release -o ./../publish/ --no-self-contained -r linux-x64
|
||||||
|
|
||||||
copy up to server
|
copy up to server
|
||||||
.NET Core apps: /var/aspnetcore
|
.NET Core apps: /srv/coreapps/contact
|
||||||
|
|
||||||
, then to restart the service do this:
|
, then to restart the service do this:
|
||||||
systemctl status kestrel-contact.service
|
systemctl status kestrel-contact.service
|
||||||
|
|||||||
Reference in New Issue
Block a user