# Import External Content

The Sunbird platform allows users with Content Creator role permissions to create content and upload content from external sources to the Sunbird content library. You can upload content from external websites such as YouTube, Dailymotion, etc. This section explains the procedure to enable a Sunbird instance to host content from external sources.

### Intended Audience <a href="#intended-audience" id="intended-audience"></a>

Instance administrator

### Prerequisite <a href="#prerequisite" id="prerequisite"></a>

Ensure that the following is enabled for Sunbird instance to host content from external domains:

* You are logged in as the organization administrator
* You have access to set the environment variables

### Whitelisting a Domain <a href="#whitelisting-a-domain" id="whitelisting-a-domain"></a>

There are legal considerations to be taken care of before whitelisting any domain on Sunbird. Such information will be updated soon.

### Configuring the Domain <a href="#configuring-the-domain" id="configuring-the-domain"></a>

To enable a Sunbird instance to host content from external source:

1. Set the **sunbird\_extcont\_whitelisted\_domains** variable in the **Player Service** to whitelist an external website. Add the variable into the config file.

> Example: To allow an instance to host content from an external source such as **Wordpress**, configure the environment variable in the following format: SUNBIRD\_EXTCONT\_WHITELISTED\_DOMAINS: env.sunbird\_extcont\_whitelisted\_domains ||’wordpress.com’

On successful configuration of the external domain, the content creators of the organization can upload content from external sources.

For details on uploading Sunbird Content.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowlg.sunbird.org/use/additional-reading/import-external-content.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
