# Photography Domain Invalid as Website on Profile

**URL:** https://meta.discourse.org/t/photography-domain-invalid-as-website-on-profile/76319
**Category:** Support
**Created:** [Décembre 18, 2017, 2:53 UTC](https://meta.discourse.org/t/photography-domain-invalid-as-website-on-profile/76319 "2017-12-18T14:53:23Z")
**Posts on this page:** 1
**Showing post:** 18

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [Décembre 21, 2017, 6:03 UTC](https://meta.discourse.org/t/photography-domain-invalid-as-website-on-profile/76319/18 "2017-12-21T06:03:19Z")

</div>

OK so I had a look through the previous commits and realized that what we initially wanted to do is to [validate the **format** of the URL](https://meta.discourse.org/t/url-validation-for-web-site-on-user-profile/38864/5). That means that there is no need for us to care about whether the URL would return a valid HTTP response as that would require a different solution if we wanted to verify that.

However, I did noticed that our `UrlValidator` wasn’t handling a bunch of cases properly and that has been fixed in

[https://github.com/discourse/discourse/commit/6ecf37c482603cba27510e41723fdd1909d0a135](https://github.com/discourse/discourse/commit/6ecf37c482603cba27510e41723fdd1909d0a135)

I’ve also switched the validation for `UserProfile#website` to use our `UrlValidator` which removes the Regexp that has been quite problematic for us

[https://meta.discourse.org/t/cannot-update-preferences-website-is-invalid/39162](https://meta.discourse.org/t/cannot-update-preferences-website-is-invalid/39162)

> [@User website preference is invalid with underscore](https://meta.discourse.org/t/user-website-preference-is-invalid-with-underscore/41784/6):
>
> And what about IDNs? The regular expression validating the website url is so strict that I can’t fit in my perfectly valid URL [https://ondřej.caletka.cz](https://xn--ondej-kcb.caletka.cz) Even using Punycode form of [https://ondřej.caletka.cz](https://xn--ondej-kcb.caletka.cz) is not accepted, even though it is perfectly valid here in this very forum post.

> [@User Preference 'Website' does not allow new TLDs](https://meta.discourse.org/t/user-preference-website-does-not-allow-new-tlds/49931):
>
> Even though Discourse is hosted on my new TLD domain ‘jamesnorth.productions’, it will not allow the website ‘[http://jamesnorth.productions](http://jamesnorth.productions)’ in the user preferences. It says that the website is invalid. Version v1.7.0.beta3 +100

---

_[View the full topic](https://meta.discourse.org/t/photography-domain-invalid-as-website-on-profile/76319)._
