[GH-ISSUE #334] URL Verification without TLD #255

Closed
opened 2026-02-25 23:41:47 +03:00 by kerem · 2 comments
Owner

Originally created by @ivanmihov on GitHub (Feb 18, 2020).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/334

Can we adjust the URL verification to allow URLs without the TLD?
My use case is in Docker, where the container is part of an internal network and is given access only to that network. I need to create a Webhook that does a post request to a URL: http://notify/messages
At the moment the UI shows an error "Enter a valid URL" because the TLD is missing, however, the address is still valid.

Originally created by @ivanmihov on GitHub (Feb 18, 2020). Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/334 Can we adjust the URL verification to allow URLs without the TLD? My use case is in Docker, where the container is part of an internal network and is given access only to that network. I need to create a Webhook that does a post request to a URL: http://notify/messages At the moment the UI shows an error "Enter a valid URL" because the TLD is missing, however, the address is still valid.
kerem closed this issue 2026-02-25 23:41:47 +03:00
Author
Owner

@cuu508 commented on GitHub (Feb 18, 2020):

Not easily, would require changes in a number of places. And I definitely would not want to copy, modify and maintain the monster regex that Django uses for URL validation.

This is the first time TLD-less webhook addresses have come up. Maybe you can get by with a workaround: edit the webhook address in Django admin > Api > Channels? There's no URL validation there.

<!-- gh-comment-id:587412753 --> @cuu508 commented on GitHub (Feb 18, 2020): Not easily, would require changes in a number of places. And I definitely would not want to copy, modify and maintain [the monster regex](https://github.com/django/django/blob/master/django/core/validators.py#L82) that Django uses for URL validation. This is the first time TLD-less webhook addresses have come up. Maybe you can get by with a workaround: edit the webhook address in Django admin > Api > Channels? There's no URL validation there.
Author
Owner

@ivanmihov commented on GitHub (Feb 18, 2020):

You are right, it might be too specific of a use case to go through all that.
Your suggestion about editing the Django admin channel worked:) Thank you, I will close the issue now.

<!-- gh-comment-id:587487472 --> @ivanmihov commented on GitHub (Feb 18, 2020): You are right, it might be too specific of a use case to go through all that. Your suggestion about editing the Django admin channel worked:) Thank you, I will close the issue now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#255
No description provided.