CARVIEW |
This content may be out of date. For the newest content, see the API posts on the GitHub Blog.
All of GitHub's Docs are now in one place! You can see Apps, REST API, and GraphQL API on GitHub Docs.
New user content domains
- April 25, 2014
-
azizshamim
Securing your content
The GitHub Bug Bounty program recently identified a few cross-domain vulnerabilities related to user-generated content, and we've shipped improvements today to address those issues.
In order to better isolate your content from potentially malicious content uploaded by other users (e.g., content that might contain Cross-Site Scripting or other embedded attacks), we now serve user-generated content from subdomains of githubusercontent.com. This content is no longer served from subdomains of github.com.
What's affected?
This change affects the following subdomains:
- raw.github.com : Serves raw file content from your repository.
- embed.github.com : Allows users to embed rich GitHub content on other sites.
- render.github.com : Displays rich content on GitHub.com.
- f.cloud.github.com : Hosts all those amazing gifs you use in Pull Requests and Issues.
Content formerly served by these subdomains is now served from subdomains of githubusercontent.com.
Older links
If you have old links to this content, don't worry: as of today, we're forcing the old domains to redirect to the new domains. Your existing links should continue to work automatically in your browser. If you're using a URL from Gist or GitHub to directly access user-generated content via curl
, wget
, or a library (like HTTParty), be sure to configure that tool to follow the redirect.
Your proxies or filters
Some security systems (web proxies, for example) may not recognize the githubusercontent.com domain. In those cases, you may need update your proxies and security software accordingly.
As always, if you have any questions, please get in touch.
Happy and safe GitHubbing!
Recent Posts
- Antiope preview graduation
October 1, 2020 - Machine-man and sailor-v previews graduate
August 20, 2020 - GitHub Actions API - Introducing workflow usage endpoints
May 15, 2020 - Introducing the skipped check run and check suite conclusion
May 8, 2020 - Suspending GitHub App installations
May 1, 2020 - Expiring user-to-server access tokens for GitHub Apps
April 30, 2020 - Replacing the GitHub Apps "Creating an installation access token" endpoint
April 15, 2020 - Replacing the integration_installation and integration_installation_repositories webhook events
April 15, 2020