diff --git a/PyFunceble/checker/availability/extras/rules.py b/PyFunceble/checker/availability/extras/rules.py index 9f3fb85e..06153f0b 100644 --- a/PyFunceble/checker/availability/extras/rules.py +++ b/PyFunceble/checker/availability/extras/rules.py @@ -91,11 +91,16 @@ def __init__(self, status: Optional[AvailabilityCheckerStatus] = None) -> None: r"\.github\.io$": [(self.switch_to_down_if_status_code, 404)], r"\.glitchz\.me$": [(self.switch_to_down_if_status_code, 403)], r"\.godaddysites\.com$": [(self.switch_to_down_if_status_code, 404)], - r"\.hpg.com.br$": [(self.switch_to_down_if_status_code, 404)], + r"\.hpg\.com\.br$": [(self.switch_to_down_if_status_code, 404)], + r"^heylink\.me$": [(self.switch_to_down_if_status_code, 410)], + r"^heyl\.ink$": [(self.switch_to_down_if_status_code, 410)], r"\.imgur\.com$": [self.handle_imgur_dot_com], r"\.liveadvert\.com$": [(self.switch_to_down_if_status_code, 404)], r"\.myhuaweicloudz\.com$": [(self.switch_to_down_if_status_code, 403)], r"\.skyrock\.com$": [(self.switch_to_down_if_status_code, 404)], + r"\.squarespace.com$": [(self.switch_to_down_if_status_code, 404), + self.handle_squarespace_com, + ], r"\.sz.id$": [(self.switch_to_down_if_status_code, 302)], r"\.translate\.goog$": [(self.switch_to_down_if_status_code, 403)], r"\.tumblr\.com$": [(self.switch_to_down_if_status_code, 404)], @@ -260,6 +265,25 @@ def handle_vercel_dot_app(self) -> "ExtraRulesHandler": return self + def handle_squarespace_com(self) -> "ExtraRulesHandler": + """ + Handles the :code:`wordpress.com` case. + + .. warning:: + This method assume that we know that we are handling a blogspot domain. + """ + + regex_squarespace = [r"This site has been deleted by the owner\."] + + self.do_on_body_match( + self.req_url, + regex_squarespace, + method=self.switch_to_down, + allow_redirects=True, + ) + + return self + def __handle_active2inactive(self) -> "ExtraRulesHandler": """ Handles the status deescalation.