# Hugging face space access only from website

**URL:** <https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494>\
**Category:** Spaces\
**Created:** [August 28, 2023, 1:45pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494 "2023-08-28T13:45:30Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![nbaru](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nbaru](https://discuss.huggingface.co/u/nbaru)\
**Post date:** [August 28, 2023, 1:45pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494/1 "2023-08-28T13:45:30Z")

</div>

Hello there.I want to embed a hf space on my website,is it possible for the users of the space to access it only from my website and not from hugging face or by directly writing the space url.

---

<div class="post-metadata">

**Author:** ![julien-c](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/julien-c/32/41937_2.png) [@julien-c](https://discuss.huggingface.co/u/julien-c)\
**Post date:** [August 29, 2023, 2:12pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494/2 "2023-08-29T14:12:03Z")

</div>

Hi @nbaru

To understand your use case, would your whole website be a Space? or would you have a website with an iframe (or Web component) embed of a Space inside of it?

---

<div class="post-metadata">

**Author:** ![nbaru](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nbaru](https://discuss.huggingface.co/u/nbaru)\
**Post date:** [August 29, 2023, 2:13pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494/3 "2023-08-29T14:13:34Z")

</div>

The second choice.

---

<div class="post-metadata">

**Author:** ![julien-c](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/julien-c/32/41937_2.png) [@julien-c](https://discuss.huggingface.co/u/julien-c)\
**Post date:** [August 29, 2023, 2:13pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494/4 "2023-08-29T14:13:54Z")

</div>

(if your whole website is a Space, we might have an option for you in the future (“custom domains”))

---

<div class="post-metadata">

**Author:** ![julien-c](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/julien-c/32/41937_2.png) [@julien-c](https://discuss.huggingface.co/u/julien-c)\
**Post date:** [August 29, 2023, 2:14pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494/5 "2023-08-29T14:14:46Z")

</div>

Ok, then no, we don’t really have this feature for now. Will keep in mind for the future! cc @osanseviero @sbrandeis for visibility

---

<div class="post-metadata">

**Author:** ![nbaru](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nbaru](https://discuss.huggingface.co/u/nbaru)\
**Post date:** [August 29, 2023, 2:16pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494/6 "2023-08-29T14:16:12Z")

</div>

What is the difference or just embedding the space as a website page using iframe?

---

<div class="post-metadata">

**Author:** ![nbaru](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nbaru](https://discuss.huggingface.co/u/nbaru)\
**Post date:** [August 29, 2023, 2:17pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494/7 "2023-08-29T14:17:16Z")

</div>

Tell me more about this.

---

<div class="post-metadata">

**Author:** ![julien-c](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/julien-c/32/41937_2.png) [@julien-c](https://discuss.huggingface.co/u/julien-c)\
**Post date:** [August 29, 2023, 2:20pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494/8 "2023-08-29T14:20:14Z")

</div>

it’s very preliminary but we’ve been thinking about custom domain hosting as an option in Spaces

---

<div class="post-metadata">

**Author:** ![nbaru](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nbaru](https://discuss.huggingface.co/u/nbaru)\
**Post date:** [August 29, 2023, 2:22pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494/9 "2023-08-29T14:22:10Z")

</div>

So it means the space will be accessed only from the custom domain only?

---

<div class="post-metadata">

**Author:** ![nbaru](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nbaru](https://discuss.huggingface.co/u/nbaru)\
**Post date:** [August 29, 2023, 2:33pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494/11 "2023-08-29T14:33:06Z")

</div>

Would that happen soon?

---

<div class="post-metadata">

**Author:** ![julien-c](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/julien-c/32/41937_2.png) [@julien-c](https://discuss.huggingface.co/u/julien-c)\
**Post date:** [August 29, 2023, 2:33pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494/12 "2023-08-29T14:33:47Z")

</div>

We don’t have an ETA yet, i would guess around end of year!

---

<div class="post-metadata">

**Author:** ![nbaru](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nbaru](https://discuss.huggingface.co/u/nbaru)\
**Post date:** [August 29, 2023, 2:34pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494/13 "2023-08-29T14:34:17Z")

</div>

How about this?

---

<div class="post-metadata">

**Author:** ![nbaru](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nbaru](https://discuss.huggingface.co/u/nbaru)\
**Post date:** [August 29, 2023, 2:35pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494/14 "2023-08-29T14:35:13Z")

</div>

Will the space only accessed by the domain and not hugging face?

---

<div class="post-metadata">

**Author:** ![julien-c](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/julien-c/32/41937_2.png) [@julien-c](https://discuss.huggingface.co/u/julien-c)\
**Post date:** [August 29, 2023, 5:14pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494/15 "2023-08-29T17:14:50Z")

</div>

yes that’s correct

---

<div class="post-metadata">

**Author:** ![nbaru](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nbaru](https://discuss.huggingface.co/u/nbaru)\
**Post date:** [August 29, 2023, 8:50pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494/16 "2023-08-29T20:50:19Z")

</div>

Thank you so much for your valuable time!

---

<div class="post-metadata">

**Author:** ![meganariley](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/meganariley/32/56966_2.png) [@meganariley](https://discuss.huggingface.co/u/meganariley)\
**Post date:** [September 17, 2025, 3:53pm UTC](https://discuss.huggingface.co/t/hugging-face-space-access-only-from-website/52494/17 "2025-09-17T15:53:26Z")

</div>

Hi @nbaru I wanted to let you know that you can now host your Space under a **custom domain** 🔥 This feature is available to all subscribed to [PRO, Team or Enterprise](https://huggingface.co/pricing?from=support)!

Read more about [getting started with a custom domain](https://huggingface.co/docs/hub/spaces-custom-domain) 🚀 You can also check out the latest updates on the Hugging Face Hub in our [changelog](https://huggingface.co/changelog), and let us know how it goes!🙂
