Skip to content

Commit d88ff7a

Browse files
committed
Squashed commit of the following:
commit 591b74ff3515baa1705d1b15b841815911721f8c Author: funilrys <[email protected]> Date: Thu Dec 26 14:23:56 2024 +0100 Put handle_wordpress_dot_com back in place. commit b1da3a45879279c3c8abf52d3a78248482a8c2f3 Author: spirillen <[email protected]> Date: Mon Nov 18 00:12:42 2024 +0000 Added 3x.ro free hosting service 3x.ro is a free hosting service in Romania, And with plenty of FP's out there in various blacklist projects Signed-off-by: spirillen <[email protected]> commit ab7f7c2 Author: spirillen <[email protected]> Date: Wed Dec 18 10:52:32 2024 +0000 Update 01-feature-request.yml Deleted presets of values as they only leads to users have to delete the text versus only using placeholder "shadowed" text sample Signed-off-by: spirillen <[email protected]> commit b3ff10a Author: spirillen <[email protected]> Date: Wed Dec 18 10:46:10 2024 +0000 Typo in 01-feature-request.yml Fixed a typo and enabled COC Signed-off-by: spirillen <[email protected]> commit fac6b0a Author: Spirillen <[email protected]> Date: Mon Dec 9 20:03:52 2024 +0100 Special rule for `vercel.app` Rewritten the way we check for the gTLD to be set as down Test domain `https://trilougammocu-8912.vercel.app` commit 184af75 Author: spirillen <[email protected]> Date: Mon Dec 9 15:49:37 2024 +0000 Updated vercel rule Found they are using 404 along side http code 451 Signed-off-by: spirillen <[email protected]> commit 8eb12e9 Author: spirillen <[email protected]> Date: Mon Dec 9 15:30:17 2024 +0000 Special rule for `vercel.app` This issue are taking care of one of our time biggest phishing network See: - https://kb.mypdns.org/issue/MTX-1402 - mypdns/matrix#1400 By adding the HTTP code 451, we should be able to remove any outdated records Closes #407 Signed-off-by: spirillen <[email protected]>
1 parent edc4324 commit d88ff7a

File tree

2 files changed

+42
-20
lines changed

2 files changed

+42
-20
lines changed

.github/ISSUE_TEMPLATE/01-feature-request.yml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ body:
1313
value: |+
1414
Thanks for taking the time to fill out this feature request!
1515
16-
lease be patient and rest assured that we will get back to you as soon as possible.
17-
To help us understand and reproduce the issue, please provide as much information as possible.
16+
Please be patient and rest assured that we will get back to you as soon as possible.
17+
To help us understand the request, please provide as much information as possible.
1818
1919
If you have a question or need help, please ask in our [Discussions](https://github.com/funilrys/PyFunceble/discussions) section.
2020
@@ -25,8 +25,6 @@ body:
2525
description: Please describe the feature you'd like to request.
2626
placeholder: |
2727
I'd like to request a feature that...
28-
value: |
29-
I'd like to request a feature that...
3028
validations:
3129
required: true
3230

@@ -37,8 +35,6 @@ body:
3735
description: Please describe the problem you are trying to solve.
3836
placeholder: |
3937
I'm trying to solve a problem where...
40-
value: |
41-
I'm trying to solve a problem where...
4238
validations:
4339
required: true
4440

@@ -49,8 +45,6 @@ body:
4945
description: Please describe the solution you'd like to see.
5046
placeholder: |
5147
I'd like to see a solution that...
52-
value: |
53-
I'd like to see a solution that...
5448
validations:
5549
required: true
5650

@@ -61,8 +55,6 @@ body:
6155
description: Please describe any alternatives you've considered.
6256
placeholder: |
6357
I've considered alternatives such as...
64-
value: |
65-
I've considered alternatives such as...
6658
validations:
6759
required: false
6860

@@ -73,16 +65,14 @@ body:
7365
description: Please provide any additional context or screenshots.
7466
placeholder: |
7567
I would like to add...
76-
value: |
77-
I would like to add...
7868
validations:
7969
required: false
8070

81-
# - type: checkboxes
82-
# id: terms
83-
# attributes:
84-
# label: Code of Conduct
85-
# description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.org/todo).
86-
# options:
87-
# - label: I agree to follow this project's Code of Conduct
88-
# required: true
71+
- type: checkboxes
72+
id: terms
73+
attributes:
74+
label: Code of Conduct
75+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/funilrys/PyFunceble/blob/dev/CODE_OF_CONDUCT.md).
76+
options:
77+
- label: I agree to follow this project's Code of Conduct
78+
required: true

PyFunceble/checker/availability/extras/rules.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ def __init__(self, status: Optional[AvailabilityCheckerStatus] = None) -> None:
104104
r"\.sz.id$": [(self.switch_to_down_if_status_code, 302)],
105105
r"\.translate\.goog$": [(self.switch_to_down_if_status_code, 403)],
106106
r"\.tumblr\.com$": [(self.switch_to_down_if_status_code, 404)],
107+
r"\.vercel\.app$": [
108+
(self.switch_to_down_if_status_code, "451"),
109+
self.handle_vercel_dot_app
110+
],
107111
r"\.web\.app$": [(self.switch_to_down_if_status_code, 404)],
108112
r"\.wix\.com$": [(self.switch_to_down_if_status_code, 404)],
109113
r"^s3\.ap-south-1\.amazonaws\.com$": [
@@ -233,6 +237,34 @@ def handle_imgur_dot_com(self) -> "ExtraRulesHandler":
233237

234238
return self
235239

240+
def handle_vercel_dot_app(self) -> "ExtraRulesHandler":
241+
"""
242+
Handles the :code:`vercel.app` case.
243+
244+
.. warning::
245+
This method assume that we know that we are handling a vercel.app domain.
246+
"""
247+
248+
regex_vercel = [r"This%20Deployment%20has%20been%20disabled"]
249+
250+
self.do_on_header_match(
251+
self.req_url,
252+
{"x-vercel-error": ["DEPLOYMENT_DISABLED"]},
253+
method=self.switch_to_down,
254+
match_mode="std",
255+
strict=True,
256+
allow_redirects=False,
257+
)
258+
259+
self.do_on_body_match(
260+
self.req_url,
261+
regex_vercel,
262+
method=self.switch_to_down,
263+
allow_redirects=False,
264+
)
265+
266+
return self
267+
236268
def handle_squarespace_com(self) -> "ExtraRulesHandler":
237269
"""
238270
Handles the :code:`wordpress.com` case.

0 commit comments

Comments
 (0)