From e270a3d97049bc3c3092a8aaf9fb61c6aa2c4da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Mon, 11 Aug 2025 14:15:43 +0200 Subject: [PATCH] chore: update ENTITY_HANDLE_BLACKLIST --- migrations/Version20250811115400.php | 59 ++++++++++++++++++++++++++++ src/Service/RDAPService.php | 4 ++ 2 files changed, 63 insertions(+) create mode 100644 migrations/Version20250811115400.php diff --git a/migrations/Version20250811115400.php b/migrations/Version20250811115400.php new file mode 100644 index 0000000..876d7e7 --- /dev/null +++ b/migrations/Version20250811115400.php @@ -0,0 +1,59 @@ + "'".addslashes($h)."'", RDAPService::ENTITY_HANDLE_BLACKLIST) + ); + + $this->addSql(" + DELETE FROM entity_event + WHERE entity_uid IN ( + SELECT id FROM entity WHERE handle IN ($handlesList) + ) + "); + + $this->addSql(" + DELETE FROM domain_entity + WHERE entity_uid IN ( + SELECT id FROM entity WHERE handle IN ($handlesList) + ) + "); + + $this->addSql(" + DELETE FROM nameserver_entity + WHERE entity_uid IN ( + SELECT id FROM entity WHERE handle IN ($handlesList) + ) + "); + + $this->addSql(" + DELETE FROM entity + WHERE handle IN ($handlesList) + "); + } + + public function down(Schema $schema): void + { + $this->write('Cannot restore deleted entities'); + } +} diff --git a/src/Service/RDAPService.php b/src/Service/RDAPService.php index a45bdef..c4d8288 100644 --- a/src/Service/RDAPService.php +++ b/src/Service/RDAPService.php @@ -80,10 +80,14 @@ readonly class RDAPService 'ANO00-FRNIC', 'not applicable', 'REDACTED FOR PRIVACY-REGISTRANT', + 'REDACTED FOR PRIVACY-TECH', 'REDACTED FOR PRIVACY', + 'REDACTED-SIDN', 'REGISTRANT', 'REGISTRAR', + 'ABUSE-CONTACT', 'None', + 'Private', ]; /* @see https://www.iana.org/assignments/registrar-ids/registrar-ids.xhtml */