Add Anti TLD Abuser Filterlist to directory

- Add new FilterList entry (ID 2813) for Anti TLD Abuser Filterlist
- Add maintainer entry (ID 185) for thedoggybrad
- Create FilterListViewUrl entries for primary GitHub URL and CDN mirrors
- Associate with malware/trackers tags (6, 7) and Adblock Plus syntax (3)
- Generate EF migration AddAntiTLDAbuserFilterlist for database updates
- All data sourced from GitHub repository at thedoggybrad/AntiTLDAbuserFilterlist

Co-authored-by: collinbarrett <6483057+collinbarrett@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-07-30 02:06:37 +00:00 committed by Collin Barrett
parent dd51a5ba27
commit ecde576490
8 changed files with 90690 additions and 0 deletions

View file

@ -0,0 +1,106 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
/// <inheritdoc />
public partial class AddAntiTLDAbuserFilterlist : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "FilterList",
columns: new[] { "Id", "ChatUrl", "Description", "DonateUrl", "EmailAddress", "ForumUrl", "HomeUrl", "IssuesUrl", "LicenseId", "Name", "OnionUrl", "PolicyUrl", "SubmissionUrl" },
values: new object[] { 2813, null, "A filterlist for AdBlock Plus compatible filterlists that will warn you from visiting websites that are using those mostly and probably abused TLDs.", null, null, null, "https://github.com/thedoggybrad/AntiTLDAbuserFilterlist", "https://github.com/thedoggybrad/AntiTLDAbuserFilterlist/issues", 2, "Anti TLD Abuser Filterlist", null, null, null });
migrationBuilder.InsertData(
table: "FilterListMaintainer",
columns: new[] { "FilterListId", "MaintainerId" },
values: new object[] { 2813, 185 });
migrationBuilder.InsertData(
table: "FilterListSyntax",
columns: new[] { "FilterListId", "SyntaxId" },
values: new object[] { 2813, (short)3 });
migrationBuilder.InsertData(
table: "FilterListTag",
columns: new[] { "FilterListId", "TagId" },
values: new object[,]
{
{ 2813, 6 },
{ 2813, 7 }
});
migrationBuilder.InsertData(
table: "FilterListViewUrl",
columns: new[] { "FilterListId", "Id", "Primariness", "Url" },
values: new object[,]
{
{ 2813, 3200, (short)1, "https://raw.githubusercontent.com/thedoggybrad/AntiTLDAbuserFilterlist/main/list.txt" },
{ 2813, 3201, (short)2, "https://cdn.jsdelivr.net/gh/thedoggybrad/AntiTLDAbuserFilterlist@main/list.txt" },
{ 2813, 3202, (short)3, "https://cdn.statically.io/gh/thedoggybrad/AntiTLDAbuserFilterlist/main/list.txt" },
{ 2813, 3203, (short)4, "https://raw.githack.com/thedoggybrad/AntiTLDAbuserFilterlist/main/list.txt" },
{ 2813, 3204, (short)5, "https://gitloaf.com/cdn/thedoggybrad/AntiTLDAbuserFilterlist/main/list.txt" }
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "FilterListMaintainer",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 2813, 185 });
migrationBuilder.DeleteData(
table: "FilterListSyntax",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 2813, (short)3 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 2813, 6 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 2813, 7 });
migrationBuilder.DeleteData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2813, 3200 });
migrationBuilder.DeleteData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2813, 3201 });
migrationBuilder.DeleteData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2813, 3202 });
migrationBuilder.DeleteData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2813, 3203 });
migrationBuilder.DeleteData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2813, 3204 });
migrationBuilder.DeleteData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2813);
}
}
}

View file

@ -20915,6 +20915,15 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IssuesUrl = "https://github.com/thedoggybrad/supersecurityfilterlist/issues",
LicenseId = 2,
Name = "The Super Security Filterlist"
},
new
{
Id = 2813,
Description = "A filterlist for AdBlock Plus compatible filterlists that will warn you from visiting websites that are using those mostly and probably abused TLDs.",
HomeUrl = "https://github.com/thedoggybrad/AntiTLDAbuserFilterlist",
IssuesUrl = "https://github.com/thedoggybrad/AntiTLDAbuserFilterlist/issues",
LicenseId = 2,
Name = "Anti TLD Abuser Filterlist"
});
});
@ -33309,6 +33318,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2812,
MaintainerId = 185
},
new
{
FilterListId = 2813,
MaintainerId = 185
});
});
@ -44916,6 +44930,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2812,
SyntaxId = (short)3
},
new
{
FilterListId = 2813,
SyntaxId = (short)3
});
});
@ -61458,6 +61477,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2812,
TagId = 7
},
new
{
FilterListId = 2813,
TagId = 6
},
new
{
FilterListId = 2813,
TagId = 7
});
});
@ -90188,6 +90217,46 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/thedoggybrad/supersecurityfilterlist/main/list.txt"
},
new
{
FilterListId = 2813,
Id = 3200,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/thedoggybrad/AntiTLDAbuserFilterlist/main/list.txt"
},
new
{
FilterListId = 2813,
Id = 3201,
Primariness = (short)2,
SegmentNumber = (short)0,
Url = "https://cdn.jsdelivr.net/gh/thedoggybrad/AntiTLDAbuserFilterlist@main/list.txt"
},
new
{
FilterListId = 2813,
Id = 3202,
Primariness = (short)3,
SegmentNumber = (short)0,
Url = "https://cdn.statically.io/gh/thedoggybrad/AntiTLDAbuserFilterlist/main/list.txt"
},
new
{
FilterListId = 2813,
Id = 3203,
Primariness = (short)4,
SegmentNumber = (short)0,
Url = "https://raw.githack.com/thedoggybrad/AntiTLDAbuserFilterlist/main/list.txt"
},
new
{
FilterListId = 2813,
Id = 3204,
Primariness = (short)5,
SegmentNumber = (short)0,
Url = "https://gitloaf.com/cdn/thedoggybrad/AntiTLDAbuserFilterlist/main/list.txt"
});
});

View file

@ -18484,5 +18484,13 @@
"issuesUrl": "https://github.com/thedoggybrad/supersecurityfilterlist/issues",
"licenseId": 2,
"name": "The Super Security Filterlist"
},
{
"description": "A filterlist for AdBlock Plus compatible filterlists that will warn you from visiting websites that are using those mostly and probably abused TLDs.",
"homeUrl": "https://github.com/thedoggybrad/AntiTLDAbuserFilterlist",
"id": 2813,
"issuesUrl": "https://github.com/thedoggybrad/AntiTLDAbuserFilterlist/issues",
"licenseId": 2,
"name": "Anti TLD Abuser Filterlist"
}
]

View file

@ -6346,5 +6346,9 @@
{
"filterListId": 2812,
"maintainerId": 185
},
{
"filterListId": 2813,
"maintainerId": 185
}
]

View file

@ -9270,5 +9270,9 @@
{
"filterListId": 2812,
"syntaxId": 3
},
{
"filterListId": 2813,
"syntaxId": 3
}
]

View file

@ -13218,5 +13218,13 @@
{
"filterListId": 2812,
"tagId": 7
},
{
"filterListId": 2813,
"tagId": 6
},
{
"filterListId": 2813,
"tagId": 7
}
]

View file

@ -17569,5 +17569,35 @@
"id": 3199,
"primariness": 1,
"url": "https://raw.githubusercontent.com/thedoggybrad/supersecurityfilterlist/main/list.txt"
},
{
"filterListId": 2813,
"id": 3200,
"primariness": 1,
"url": "https://raw.githubusercontent.com/thedoggybrad/AntiTLDAbuserFilterlist/main/list.txt"
},
{
"filterListId": 2813,
"id": 3201,
"primariness": 2,
"url": "https://cdn.jsdelivr.net/gh/thedoggybrad/AntiTLDAbuserFilterlist@main/list.txt"
},
{
"filterListId": 2813,
"id": 3202,
"primariness": 3,
"url": "https://cdn.statically.io/gh/thedoggybrad/AntiTLDAbuserFilterlist/main/list.txt"
},
{
"filterListId": 2813,
"id": 3203,
"primariness": 4,
"url": "https://raw.githack.com/thedoggybrad/AntiTLDAbuserFilterlist/main/list.txt"
},
{
"filterListId": 2813,
"id": 3204,
"primariness": 5,
"url": "https://gitloaf.com/cdn/thedoggybrad/AntiTLDAbuserFilterlist/main/list.txt"
}
]