From f4a689d999dada946fc96c76deae3d499e31713a Mon Sep 17 00:00:00 2001 From: spirillen <44526987+spirillen@users.noreply.github.com> Date: Mon, 11 Mar 2024 03:00:48 +0000 Subject: [PATCH] Updated 000webhostapp.com rules While working with https://github.com/funilrys/PyFunceble/issues/358, https://github.com/funilrys/PyFunceble/issues/354 & https://github.com/mitchellkrogza/Phishing.Database/issues/840 I found that the hosting company also uses the HTTP code 428 for disabled (Website is archived.) Example URI ```css http://httpmwankaiwqkcom.000webhostapp.com/ http://https244577889078564546464534353date.000webhostapp.com/ ``` --- PyFunceble/checker/availability/extras/rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyFunceble/checker/availability/extras/rules.py b/PyFunceble/checker/availability/extras/rules.py index 28b75405..60aa1e45 100644 --- a/PyFunceble/checker/availability/extras/rules.py +++ b/PyFunceble/checker/availability/extras/rules.py @@ -78,7 +78,7 @@ class ExtraRulesHandler(ExtraRuleHandlerBase): def __init__(self, status: Optional[AvailabilityCheckerStatus] = None) -> None: self.regex_active2inactive = { r"\.000webhostapp\.com": [ - (self.switch_to_down_if_status_code, 410), + (self.switch_to_down_if_status_code, {410, 424}), ], r"\.24\.eu$": [(self.switch_to_down_if_status_code, 503)], r"\.altervista\.org$": [(self.switch_to_down_if_status_code, 403)],