# Embedding a private space on my website

**URL:** <https://discuss.huggingface.co/t/embedding-a-private-space-on-my-website/39608>\
**Category:** Spaces\
**Created:** [May 12, 2023, 6:20am UTC](https://discuss.huggingface.co/t/embedding-a-private-space-on-my-website/39608 "2023-05-12T06:20:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asach](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/asach/32/16077_2.png) [@asach](https://discuss.huggingface.co/u/asach)\
**Post date:** [May 12, 2023, 6:20am UTC](https://discuss.huggingface.co/t/embedding-a-private-space-on-my-website/39608/1 "2023-05-12T06:20:16Z")

</div>

Is there any work around for this, using token or something?

It would be great.  
Thank You

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [May 12, 2023, 9:12pm UTC](https://discuss.huggingface.co/t/embedding-a-private-space-on-my-website/39608/2 "2023-05-12T21:12:29Z")

</div>

hi @asach,  
Currently to embed a Space externally, you need a public Space. If you want to protect the content of your public Space you can follow this workaround

> [@Embedding Spaces with auth for public models counter-intuitive?](https://discuss.huggingface.co/t/embedding-spaces-with-auth-for-public-models-counter-intuitive/32868/3):
>
> Hello @EtheE, thank you for your feedback. We have received similar requests in the past, we might implement a solution it in the future. However, we have previously suggested different workarounds depending on the specific use case: To hide sensitive source code on Space, you can create a private Space and a second public Space which only loads the private Space using the ‘gr.Interface.load()’ method. This method can load a Space even if it is private. Check more her [Gradio Docs](https://gradio.app/docs/#interface-load). To hide …

---

<div class="post-metadata">

**Author:** ![Gedankenleser](https://avatars.discourse-cdn.com/v4/letter/g/76d3ee/32.png) [@Gedankenleser](https://discuss.huggingface.co/u/Gedankenleser)\
**Post date:** [May 25, 2023, 7:21am UTC](https://discuss.huggingface.co/t/embedding-a-private-space-on-my-website/39608/3 "2023-05-25T07:21:52Z")

</div>

And then what prevents someone from simply duplicating this second public space?  
Here is my suggestion, YOU want to make money…YOU will find a solution. YOU certainly do not want to be sued in the EU for data protection issues and/or copyright.  
I’ll give you 7 days to solve the problem, then I’ll check back. 🙂

---

<div class="post-metadata">

**Author:** ![shimaahmedd](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@shimaahmedd](https://discuss.huggingface.co/u/shimaahmedd)\
**Post date:** [March 26, 2024, 10:38am UTC](https://discuss.huggingface.co/t/embedding-a-private-space-on-my-website/39608/4 "2024-03-26T10:38:59Z")

</div>

The public space never loads the private data in the private space via gr.load()
