+ CentCom makes use of automated data aggregators which collect information from consenting websites. The information provided by our consenting partners is temporarily replicated within CentCom's databases, and is
+ updated often to reflect any modification or deletion of the source data. If your site is being parsed by CentCom without your consent, or you otherwise have any issues, contact the
+ developer bobbahbrown through Discord at bobbahbrown#0001.
+
+
+ Our aggregators can be identified by their user agent: Mozilla/5.0 (compatible; CentComBot/<version> +https://centcom.melonmesa.com/scraper)
+
\ No newline at end of file
diff --git a/CentCom.Bot/CentCom.Bot.csproj b/CentCom.Bot/CentCom.Bot.csproj
index 3951c4f..8c67b3f 100644
--- a/CentCom.Bot/CentCom.Bot.csproj
+++ b/CentCom.Bot/CentCom.Bot.csproj
@@ -2,7 +2,7 @@
Exe
- 1.3.11
+ 1.3.12net5.0c8af1449-8cdf-4707-a66d-51e896551bfb
diff --git a/CentCom.Common/CentCom.Common.csproj b/CentCom.Common/CentCom.Common.csproj
index c01fd05..fcb9579 100644
--- a/CentCom.Common/CentCom.Common.csproj
+++ b/CentCom.Common/CentCom.Common.csproj
@@ -2,7 +2,7 @@
net5.0
- 1.3.11
+ 1.3.12
diff --git a/CentCom.Exporter/CentCom.Exporter.csproj b/CentCom.Exporter/CentCom.Exporter.csproj
index 0931aa9..6bc5dca 100644
--- a/CentCom.Exporter/CentCom.Exporter.csproj
+++ b/CentCom.Exporter/CentCom.Exporter.csproj
@@ -2,7 +2,7 @@
net5.0
- 1.3.11
+ 1.3.12a625260b-31a1-4f4b-84f4-96ccc7a335e7
diff --git a/CentCom.Server/CentCom.Server.csproj b/CentCom.Server/CentCom.Server.csproj
index d129adc..8163e59 100644
--- a/CentCom.Server/CentCom.Server.csproj
+++ b/CentCom.Server/CentCom.Server.csproj
@@ -3,7 +3,7 @@
Exenet5.0
- 1.3.11
+ 1.3.1294572412-7eb8-4652-aff2-8afc154cf139
diff --git a/CentCom.Server/Services/RestBanService.cs b/CentCom.Server/Services/RestBanService.cs
index b4fc1b6..584feb4 100644
--- a/CentCom.Server/Services/RestBanService.cs
+++ b/CentCom.Server/Services/RestBanService.cs
@@ -1,3 +1,4 @@
+using System.Reflection;
using System.Text;
using CentCom.Server.Exceptions;
using Microsoft.Extensions.Logging;
@@ -39,6 +40,11 @@ protected void FailedRequest(IRestResponse response)
protected void InitializeClient()
{
Client = BaseUrl != null ? new RestClient(BaseUrl) : null;
+ if (Client == null)
+ return;
+
+ // Setup user agent
+ Client.UserAgent = $"Mozilla/5.0 (compatible; CentComBot/{Assembly.GetExecutingAssembly().GetName().Version}; +https://centcom.melonmesa.com/scraper)";
}
}
}
\ No newline at end of file
diff --git a/CentCom.Server/appsettings.json b/CentCom.Server/appsettings.json
index 79dac15..594c67c 100644
--- a/CentCom.Server/appsettings.json
+++ b/CentCom.Server/appsettings.json
@@ -7,5 +7,11 @@
"allowFulpExpiredSSL": true
},
"standardSources": [
+ {
+ "id": "shiptest",
+ "display": "Shiptest 13",
+ "roleplayLevel": "Medium",
+ "url": "https://bans.shiptest.ga/"
+ }
]
}
\ No newline at end of file