@@ -95,7 +95,9 @@ def __init__(self, status: Optional[AvailabilityCheckerStatus] = None) -> None:
9595 r"\.liveadvert\.com$" : [(self .switch_to_down_if_status_code , 404 )],
9696 r"\.myhuaweicloudz\.com$" : [(self .switch_to_down_if_status_code , 403 )],
9797 r"\.skyrock\.com$" : [(self .switch_to_down_if_status_code , 404 )],
98- r"\.squarespace.com$" : [(self .switch_to_down_if_status_code , 404 )],
98+ r"\.squarespace.com$" : [(self .switch_to_down_if_status_code , 404 ),
99+ self .handle_squarespace_com ,
100+ ],
99101 r"\.sz.id$" : [(self .switch_to_down_if_status_code , 302 )],
100102 r"\.translate\.goog$" : [(self .switch_to_down_if_status_code , 403 )],
101103 r"\.tumblr\.com$" : [(self .switch_to_down_if_status_code , 404 )],
@@ -228,6 +230,25 @@ def handle_imgur_dot_com(self) -> "ExtraRulesHandler":
228230
229231 return self
230232
233+ def handle_squarespace_com (self ) -> "ExtraRulesHandler" :
234+ """
235+ Handles the :code:`wordpress.com` case.
236+
237+ .. warning::
238+ This method assume that we know that we are handling a blogspot domain.
239+ """
240+
241+ regex_squarespace = [r"This site has been deleted by the owner\." ]
242+
243+ self .do_on_body_match (
244+ self .req_url ,
245+ regex_squarespace ,
246+ method = self .switch_to_down ,
247+ allow_redirects = True ,
248+ )
249+
250+ return self
251+
231252 def __handle_active2inactive (self ) -> "ExtraRulesHandler" :
232253 """
233254 Handles the status deescalation.
0 commit comments