Skip to content

Commit

Permalink
Introduction of the *.altervista.org SPECIAL rule.
Browse files Browse the repository at this point in the history
This patch fixes #292.

From now on, any subjects matching *.altervista.org that return
the 403 status codes are supplied as `INACTIVE`.

Contributors:
  * @spirillen
  • Loading branch information
funilrys committed Mar 5, 2022
1 parent 0fc29e6 commit df338d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions PyFunceble/checker/availability/extra_rules.py
Expand Up @@ -85,6 +85,7 @@ def __init__(self, status: Optional[AvailabilityCheckerStatus] = None) -> None:
(self.__switch_to_down_if, 410),
],
r"\.24\.eu$": [(self.__switch_to_down_if, 503)],
r"\.altervista\.org$": [(self.__switch_to_down_if, 403)],
r"\.angelfire\.com$": [(self.__switch_to_down_if, 404)],
r"\.blogspot\.": [self.__handle_blogspot],
r"\.canalblog\.com$": [(self.__switch_to_down_if, 404)],
Expand Down
10 changes: 10 additions & 0 deletions docs/components/special-rules.rst
Expand Up @@ -36,6 +36,16 @@ supplied as :code:`INACTIVE`.

------

:code:`*.altervista.org`
""""""""""""""""""""""""

.. versionadded:: 4.1.0b13

Any subjects matching the given pattern and the :code:`403` status code are
supplied as :code:`INACTIVE`.

------

:code:`*.angelfire.com`
"""""""""""""""""""""""

Expand Down

0 comments on commit df338d0

Please sign in to comment.