How to Find the Referring Domain for a SharePoint Site
Question details
The user needs to identify the specific referring domain of a SharePoint site to correctly configure embedded video playback and restrict website access.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Configuring access controls or domain restrictions for embedded videos hosted on external platforms but played within a SharePoint environment.
- Observed behavior
- Finding the exact referring domain can be challenging because SharePoint administrators frequently customize, rename, or alias site domains within an organization.
Verify exactly which SharePoint page the embedded video will be hosted on, and note that large organizations often use custom domain aliases rather than default Microsoft URLs.
Contact the Organization's SharePoint Administrator
The most reliable way to find the correct domain is to ask the IT administrator, as they control custom domain mapping and site renames.
SharePoint allows organizations to heavily customize their site structures and domain names. Because these configurations happen on the backend, standard browser checks might not always reflect the permanent or approved domain used for security whitelisting.
Find the contact information for the customer's internal IT department or the specific SharePoint administrator responsible for the site.
Ask the administrator to provide the exact, current customized domain name configured for the SharePoint environment where the video will be embedded.
Once provided, add this custom referring domain to your video hosting platform's whitelist or access control settings.

Consult the Microsoft Q&A Development Community
If you are a developer trying to capture the domain programmatically using document.referrer, specialized technical support is recommended.
Looking for a Simpler Way to Manage and Share Documents? Try WPS Office
Dealing with complex SharePoint domains and access controls can be frustrating. If you need a straightforward, hassle-free way to create, edit, and share documents with your team, WPS Office is the perfect solution. It is a highly compatible, lightweight alternative to Microsoft Office that simplifies your workflow without requiring extensive IT administration.
- 1. Download the software: Visit the WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the downloaded installation file and follow the quick setup wizard to install the suite.
- 3. Start collaborating: Open your existing Microsoft Office documents in WPS Office and easily share them using built-in cloud links.

Frequently Asked Questions
Why does my SharePoint site have a different domain than a standard Microsoft URL?
SharePoint administrators have the ability to customize and rename site domains to match their company's branding or internal naming conventions, which overrides the default 'sharepoint.com' domain.
Can I use JavaScript to find the referring domain in SharePoint?
Yes, developers often use the 'document.referrer' property in JavaScript to identify where traffic is coming from. However, strict cross-domain policies or custom SharePoint Online configurations may restrict or alter this data.
How does the referring domain affect my embedded videos?
Many professional video hosting platforms use domain-level access control to prevent unauthorized sharing. If the exact referring domain of your SharePoint site is not explicitly whitelisted in the video platform's settings, the video will refuse to play.




