# Securing your CDN: Why and how should you use SRI

DevFeed: [Securing your CDN: Why and how should you use SRI](<https://devfeed.tech/articles/securing-your-cdn-why-and-how-should-you-use-sri-4116.md>)

Original publisher: [Read original article](<https://developer.mozilla.org/en-US/blog/securing-cdn-using-sri-why-how/>)

Author: terence-eden

Published: 2023-07-21T00:00:00Z

Content type: tutorial

Language: en

Sources: [MDN Blog](<https://devfeed.tech/sources/mdn-blog.md>)

Topics: [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [cdn](<https://devfeed.tech/tags/cdn.md>), [css](<https://devfeed.tech/tags/css.md>), [external](<https://devfeed.tech/tags/external.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [html](<https://devfeed.tech/tags/html.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [security](<https://devfeed.tech/tags/security.md>)

## AI overview

A tutorial on using Subresource Integrity (SRI) to protect websites that load third-party JavaScript and CSS through CDNs. It explains how integrity hashes prevent modified external code from running.

## Source excerpt

Relying on external resources for your website is always fraught with risks. Learn how to protect your website and its visitors by using SRI to secure third-party content.