
Most websites load scripts from CDNs and third-party services. If one of those sources is compromised, the attacker's code runs on your site with full access to your users' data. Subresource Integrity (SRI) is a simple defence.
Your page includes a script tag pointing to another domain. If that file is changed by an attacker, or the CDN is compromised, every visitor loads the modified script. This is how many card-skimming attacks work.
integrity attribute with a hash to every third-party script and stylesheet.SRI adds a hash to a script tag. If the file on the CDN changes, the browser refuses to run it.
No. SRI suits versioned, static files. For scripts that change, restrict them with CSP and review the vendor.
Try Vooki Pro free for 7 days
See every third-party script your site depends on, and which ones are unprotected. The trial unlocks every feature for 7 days, and scanning runs on your own machine.
Related: Rate limiting and denial-of-service protection · Securing OAuth, OpenID Connect and SAML single sign-on