Add ChongLuaDao Phishing Blocklist filter lists and EF Core migration

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

View file

@ -0,0 +1,242 @@
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 AddChongLuaDaoPhishingBlocklist : 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[,]
{
{ 2814, null, "Machine-readable blocklist of phishing URLs from the Chống Lừa Đảo project, updated once a day.", null, null, null, "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist", "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/issues", 10, "ChongLuaDao Phishing Blocklist (URLs)", null, null, null },
{ 2815, null, "Machine-readable blocklist of phishing URLs from the Chống Lừa Đảo project in AdBlock Plus format, updated once a day.", null, null, null, "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist", "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/issues", 10, "ChongLuaDao Phishing Blocklist (AdBlock Plus)", null, null, null },
{ 2816, null, "Machine-readable blocklist of phishing URLs from the Chống Lừa Đảo project in uBlock Origin format, updated once a day.", null, null, null, "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist", "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/issues", 10, "ChongLuaDao Phishing Blocklist (uBlock Origin)", null, null, null },
{ 2817, null, "Machine-readable blocklist of phishing URLs from the Chống Lừa Đảo project in Pi-hole format, updated once a day.", null, null, null, "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist", "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/issues", 10, "ChongLuaDao Phishing Blocklist (Pi-hole)", null, null, null },
{ 2818, null, "Machine-readable blocklist of phishing IPv4 addresses from the Chống Lừa Đảo project, updated once a day.", null, null, null, "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist", "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/issues", 10, "ChongLuaDao Phishing Blocklist (IPs)", null, null, null }
});
migrationBuilder.InsertData(
table: "FilterListLanguage",
columns: new[] { "FilterListId", "LanguageId" },
values: new object[,]
{
{ 2814, (short)171 },
{ 2815, (short)171 },
{ 2816, (short)171 },
{ 2817, (short)171 },
{ 2818, (short)171 }
});
migrationBuilder.InsertData(
table: "FilterListMaintainer",
columns: new[] { "FilterListId", "MaintainerId" },
values: new object[,]
{
{ 2814, 174 },
{ 2815, 174 },
{ 2816, 174 },
{ 2817, 174 },
{ 2818, 174 }
});
migrationBuilder.InsertData(
table: "FilterListSyntax",
columns: new[] { "FilterListId", "SyntaxId" },
values: new object[,]
{
{ 2814, (short)8 },
{ 2815, (short)3 },
{ 2816, (short)4 },
{ 2817, (short)2 },
{ 2818, (short)9 }
});
migrationBuilder.InsertData(
table: "FilterListTag",
columns: new[] { "FilterListId", "TagId" },
values: new object[,]
{
{ 2814, 7 },
{ 2815, 7 },
{ 2816, 7 },
{ 2817, 7 },
{ 2818, 7 }
});
migrationBuilder.InsertData(
table: "FilterListViewUrl",
columns: new[] { "FilterListId", "Id", "Primariness", "Url" },
values: new object[,]
{
{ 2814, 3205, (short)1, "https://raw.githubusercontent.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/main/urls.txt" },
{ 2815, 3206, (short)1, "https://raw.githubusercontent.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/main/urls-ABP.txt" },
{ 2816, 3207, (short)1, "https://raw.githubusercontent.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/main/urls-UBO.txt" },
{ 2817, 3208, (short)1, "https://raw.githubusercontent.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/main/urls-pihole.txt" },
{ 2818, 3209, (short)1, "https://raw.githubusercontent.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/main/ips.txt" }
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "FilterListLanguage",
keyColumns: new[] { "FilterListId", "LanguageId" },
keyValues: new object[] { 2814, (short)171 });
migrationBuilder.DeleteData(
table: "FilterListLanguage",
keyColumns: new[] { "FilterListId", "LanguageId" },
keyValues: new object[] { 2815, (short)171 });
migrationBuilder.DeleteData(
table: "FilterListLanguage",
keyColumns: new[] { "FilterListId", "LanguageId" },
keyValues: new object[] { 2816, (short)171 });
migrationBuilder.DeleteData(
table: "FilterListLanguage",
keyColumns: new[] { "FilterListId", "LanguageId" },
keyValues: new object[] { 2817, (short)171 });
migrationBuilder.DeleteData(
table: "FilterListLanguage",
keyColumns: new[] { "FilterListId", "LanguageId" },
keyValues: new object[] { 2818, (short)171 });
migrationBuilder.DeleteData(
table: "FilterListMaintainer",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 2814, 174 });
migrationBuilder.DeleteData(
table: "FilterListMaintainer",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 2815, 174 });
migrationBuilder.DeleteData(
table: "FilterListMaintainer",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 2816, 174 });
migrationBuilder.DeleteData(
table: "FilterListMaintainer",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 2817, 174 });
migrationBuilder.DeleteData(
table: "FilterListMaintainer",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 2818, 174 });
migrationBuilder.DeleteData(
table: "FilterListSyntax",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 2814, (short)8 });
migrationBuilder.DeleteData(
table: "FilterListSyntax",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 2815, (short)3 });
migrationBuilder.DeleteData(
table: "FilterListSyntax",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 2816, (short)4 });
migrationBuilder.DeleteData(
table: "FilterListSyntax",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 2817, (short)2 });
migrationBuilder.DeleteData(
table: "FilterListSyntax",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 2818, (short)9 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 2814, 7 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 2815, 7 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 2816, 7 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 2817, 7 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 2818, 7 });
migrationBuilder.DeleteData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2814, 3205 });
migrationBuilder.DeleteData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2815, 3206 });
migrationBuilder.DeleteData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2816, 3207 });
migrationBuilder.DeleteData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2817, 3208 });
migrationBuilder.DeleteData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2818, 3209 });
migrationBuilder.DeleteData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2814);
migrationBuilder.DeleteData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2815);
migrationBuilder.DeleteData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2816);
migrationBuilder.DeleteData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2817);
migrationBuilder.DeleteData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2818);
}
}
}

View file

@ -20924,6 +20924,51 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IssuesUrl = "https://github.com/thedoggybrad/AntiTLDAbuserFilterlist/issues",
LicenseId = 2,
Name = "Anti TLD Abuser Filterlist"
},
new
{
Id = 2814,
Description = "Machine-readable blocklist of phishing URLs from the Chống Lừa Đảo project, updated once a day.",
HomeUrl = "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist",
IssuesUrl = "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/issues",
LicenseId = 10,
Name = "ChongLuaDao Phishing Blocklist (URLs)"
},
new
{
Id = 2815,
Description = "Machine-readable blocklist of phishing URLs from the Chống Lừa Đảo project in AdBlock Plus format, updated once a day.",
HomeUrl = "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist",
IssuesUrl = "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/issues",
LicenseId = 10,
Name = "ChongLuaDao Phishing Blocklist (AdBlock Plus)"
},
new
{
Id = 2816,
Description = "Machine-readable blocklist of phishing URLs from the Chống Lừa Đảo project in uBlock Origin format, updated once a day.",
HomeUrl = "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist",
IssuesUrl = "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/issues",
LicenseId = 10,
Name = "ChongLuaDao Phishing Blocklist (uBlock Origin)"
},
new
{
Id = 2817,
Description = "Machine-readable blocklist of phishing URLs from the Chống Lừa Đảo project in Pi-hole format, updated once a day.",
HomeUrl = "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist",
IssuesUrl = "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/issues",
LicenseId = 10,
Name = "ChongLuaDao Phishing Blocklist (Pi-hole)"
},
new
{
Id = 2818,
Description = "Machine-readable blocklist of phishing IPv4 addresses from the Chống Lừa Đảo project, updated once a day.",
HomeUrl = "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist",
IssuesUrl = "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/issues",
LicenseId = 10,
Name = "ChongLuaDao Phishing Blocklist (IPs)"
});
});
@ -25366,6 +25411,31 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2739,
LanguageId = (short)167
},
new
{
FilterListId = 2814,
LanguageId = (short)171
},
new
{
FilterListId = 2815,
LanguageId = (short)171
},
new
{
FilterListId = 2816,
LanguageId = (short)171
},
new
{
FilterListId = 2817,
LanguageId = (short)171
},
new
{
FilterListId = 2818,
LanguageId = (short)171
});
});
@ -33323,6 +33393,31 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2813,
MaintainerId = 185
},
new
{
FilterListId = 2814,
MaintainerId = 174
},
new
{
FilterListId = 2815,
MaintainerId = 174
},
new
{
FilterListId = 2816,
MaintainerId = 174
},
new
{
FilterListId = 2817,
MaintainerId = 174
},
new
{
FilterListId = 2818,
MaintainerId = 174
});
});
@ -44935,6 +45030,31 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2813,
SyntaxId = (short)3
},
new
{
FilterListId = 2814,
SyntaxId = (short)8
},
new
{
FilterListId = 2815,
SyntaxId = (short)3
},
new
{
FilterListId = 2816,
SyntaxId = (short)4
},
new
{
FilterListId = 2817,
SyntaxId = (short)2
},
new
{
FilterListId = 2818,
SyntaxId = (short)9
});
});
@ -61487,6 +61607,31 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2813,
TagId = 7
},
new
{
FilterListId = 2814,
TagId = 7
},
new
{
FilterListId = 2815,
TagId = 7
},
new
{
FilterListId = 2816,
TagId = 7
},
new
{
FilterListId = 2817,
TagId = 7
},
new
{
FilterListId = 2818,
TagId = 7
});
});
@ -90257,6 +90402,46 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)5,
SegmentNumber = (short)0,
Url = "https://gitloaf.com/cdn/thedoggybrad/AntiTLDAbuserFilterlist/main/list.txt"
},
new
{
FilterListId = 2814,
Id = 3205,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/main/urls.txt"
},
new
{
FilterListId = 2815,
Id = 3206,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/main/urls-ABP.txt"
},
new
{
FilterListId = 2816,
Id = 3207,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/main/urls-UBO.txt"
},
new
{
FilterListId = 2817,
Id = 3208,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/main/urls-pihole.txt"
},
new
{
FilterListId = 2818,
Id = 3209,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/main/ips.txt"
});
});

View file

@ -18492,5 +18492,45 @@
"issuesUrl": "https://github.com/thedoggybrad/AntiTLDAbuserFilterlist/issues",
"licenseId": 2,
"name": "Anti TLD Abuser Filterlist"
},
{
"description": "Machine-readable blocklist of phishing URLs from the Chống Lừa Đảo project, updated once a day.",
"homeUrl": "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist",
"id": 2814,
"issuesUrl": "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/issues",
"licenseId": 10,
"name": "ChongLuaDao Phishing Blocklist (URLs)"
},
{
"description": "Machine-readable blocklist of phishing URLs from the Chống Lừa Đảo project in AdBlock Plus format, updated once a day.",
"homeUrl": "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist",
"id": 2815,
"issuesUrl": "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/issues",
"licenseId": 10,
"name": "ChongLuaDao Phishing Blocklist (AdBlock Plus)"
},
{
"description": "Machine-readable blocklist of phishing URLs from the Chống Lừa Đảo project in uBlock Origin format, updated once a day.",
"homeUrl": "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist",
"id": 2816,
"issuesUrl": "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/issues",
"licenseId": 10,
"name": "ChongLuaDao Phishing Blocklist (uBlock Origin)"
},
{
"description": "Machine-readable blocklist of phishing URLs from the Chống Lừa Đảo project in Pi-hole format, updated once a day.",
"homeUrl": "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist",
"id": 2817,
"issuesUrl": "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/issues",
"licenseId": 10,
"name": "ChongLuaDao Phishing Blocklist (Pi-hole)"
},
{
"description": "Machine-readable blocklist of phishing IPv4 addresses from the Chống Lừa Đảo project, updated once a day.",
"homeUrl": "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist",
"id": 2818,
"issuesUrl": "https://github.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/issues",
"licenseId": 10,
"name": "ChongLuaDao Phishing Blocklist (IPs)"
}
]

View file

@ -3538,5 +3538,25 @@
{
"filterListId": 2739,
"languageId": 167
},
{
"filterListId": 2814,
"languageId": 171
},
{
"filterListId": 2815,
"languageId": 171
},
{
"filterListId": 2816,
"languageId": 171
},
{
"filterListId": 2817,
"languageId": 171
},
{
"filterListId": 2818,
"languageId": 171
}
]

View file

@ -6350,5 +6350,25 @@
{
"filterListId": 2813,
"maintainerId": 185
},
{
"filterListId": 2814,
"maintainerId": 174
},
{
"filterListId": 2815,
"maintainerId": 174
},
{
"filterListId": 2816,
"maintainerId": 174
},
{
"filterListId": 2817,
"maintainerId": 174
},
{
"filterListId": 2818,
"maintainerId": 174
}
]

View file

@ -9274,5 +9274,25 @@
{
"filterListId": 2813,
"syntaxId": 3
},
{
"filterListId": 2814,
"syntaxId": 8
},
{
"filterListId": 2815,
"syntaxId": 3
},
{
"filterListId": 2816,
"syntaxId": 4
},
{
"filterListId": 2817,
"syntaxId": 2
},
{
"filterListId": 2818,
"syntaxId": 9
}
]

View file

@ -13226,5 +13226,25 @@
{
"filterListId": 2813,
"tagId": 7
},
{
"filterListId": 2814,
"tagId": 7
},
{
"filterListId": 2815,
"tagId": 7
},
{
"filterListId": 2816,
"tagId": 7
},
{
"filterListId": 2817,
"tagId": 7
},
{
"filterListId": 2818,
"tagId": 7
}
]

View file

@ -17599,5 +17599,35 @@
"id": 3204,
"primariness": 5,
"url": "https://gitloaf.com/cdn/thedoggybrad/AntiTLDAbuserFilterlist/main/list.txt"
},
{
"filterListId": 2814,
"id": 3205,
"primariness": 1,
"url": "https://raw.githubusercontent.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/main/urls.txt"
},
{
"filterListId": 2815,
"id": 3206,
"primariness": 1,
"url": "https://raw.githubusercontent.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/main/urls-ABP.txt"
},
{
"filterListId": 2816,
"id": 3207,
"primariness": 1,
"url": "https://raw.githubusercontent.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/main/urls-UBO.txt"
},
{
"filterListId": 2817,
"id": 3208,
"primariness": 1,
"url": "https://raw.githubusercontent.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/main/urls-pihole.txt"
},
{
"filterListId": 2818,
"id": 3209,
"primariness": 1,
"url": "https://raw.githubusercontent.com/elliotwutingfeng/ChongLuaDao-Phishing-Blocklist/main/ips.txt"
}
]