mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-06 02:23:36 +00:00
ignore most staff TXT records + reserve more
This commit is contained in:
@@ -162,7 +162,12 @@ var ignored = [
|
||||
IGNORE("@", "*"),
|
||||
IGNORE("_acme-challenge", "TXT"),
|
||||
IGNORE("_autodiscover._tcp", "SRV"),
|
||||
IGNORE("_discord", "TXT"),
|
||||
IGNORE("_dmarc", "TXT"),
|
||||
IGNORE("_gh-is-a-dev-o", "TXT"),
|
||||
IGNORE("_gh-is-a-dev-o.**", "TXT"),
|
||||
IGNORE("_github-pages-challenge-is-a-dev", "TXT"),
|
||||
IGNORE("_github-pages-challenge-is-a-dev.**", "TXT"),
|
||||
IGNORE("_psl", "TXT"),
|
||||
IGNORE("autoconfig", "CNAME"),
|
||||
IGNORE("autodiscover", "CNAME"),
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "is-a-dev",
|
||||
"email": "admin@is-a.dev"
|
||||
},
|
||||
"record": {
|
||||
"TXT": ["dh=d5273eca7d19d9a734f62376816c287bc2613ef7"]
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "is-a-dev",
|
||||
"email": "admin@is-a.dev"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "9ac06a2c1c"
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "is-a-dev",
|
||||
"email": "admin@is-a.dev"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "9b2dd0cf1f2f48466e165d39351c97"
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "is-a-dev",
|
||||
"email": "admin@is-a.dev"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "9aed675b73d2147d4bc644c3551ef9"
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"description": "Requested by GitHub support for verification of a public suffix",
|
||||
"owner": {
|
||||
"username": "is-a-dev",
|
||||
"email": "admin@is-a.dev"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "aa6e2c0b-6ba9-486e-b632-b66f87e2862b"
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "is-a-dev",
|
||||
"email": "admin@is-a.dev"
|
||||
},
|
||||
"record": {
|
||||
"TXT": "451887dc71c60fef6eb91e9b1ac27d"
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "is-a-dev",
|
||||
"email": "admin@is-a.dev"
|
||||
},
|
||||
"record": {
|
||||
"URL": "https://discord.gg/is-a-dev-830872854677422150"
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "zarqizoubir",
|
||||
"email": "zarqi.ezzoubair@etu.uae.ac.ma"
|
||||
},
|
||||
"record": {
|
||||
"CNAME": "zarqizoubir.github.io"
|
||||
}
|
||||
}
|
||||
@@ -139,7 +139,10 @@ function validateRecordValues(t, data, file) {
|
||||
|
||||
if (key === "CNAME") {
|
||||
t.true(isValidHostname(value), `${file}: Invalid hostname for ${key}`);
|
||||
t.true(value !== file, `${file}: CNAME cannot point to itself`);
|
||||
t.true(value !== `${subdomain}.is-a.dev`, `${file}: ${key} cannot point to itself`);
|
||||
if (data.owner.username.toLowerCase() !== "is-a-dev") {
|
||||
t.true(value !== "is-a.dev", `${file}: ${key} cannot point to is-a.dev`);
|
||||
}
|
||||
} else if (key === "URL") {
|
||||
t.true(
|
||||
value.startsWith("http://") || value.startsWith("https://"),
|
||||
@@ -149,7 +152,8 @@ function validateRecordValues(t, data, file) {
|
||||
|
||||
// Check for self-referencing redirects
|
||||
const urlHost = new URL(value).host;
|
||||
t.false(urlHost === `${subdomain}.is-a.dev`, `${file}: URL cannot point to itself`);
|
||||
t.true(isValidHostname(urlHost), `${file}: Invalid URL hostname for ${key}`);
|
||||
t.false(urlHost === `${subdomain}.is-a.dev`, `${file}: ${key} cannot point to itself`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
"com",
|
||||
"dash",
|
||||
"dashboard",
|
||||
"discord",
|
||||
"dns",
|
||||
"doc",
|
||||
"documentation",
|
||||
@@ -30,6 +31,9 @@
|
||||
"file",
|
||||
"files",
|
||||
"get",
|
||||
"git",
|
||||
"github",
|
||||
"gitlab",
|
||||
"help",
|
||||
"home",
|
||||
"host",
|
||||
|
||||
Reference in New Issue
Block a user