🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Conta Get it free
SRI Shield icon
Manutenção ativamente Testado com WP 7.1 #32 in hardening

SRI Shield

Add Subresource Integrity hashes to enqueued scripts and styles, approve changed files before they are trusted, and scan pages for missing SRI.

Instalações ativas10+10+ nível
Downloads · 30d353▼ -9.9% vs prev. 30d
Classificação—0 comentários
Pontuação da saúde66/100Bom
Downloads de todos os tempos382Since Oct 2026
Suporte resolvido—Sem tópicos recentes
RequerWP 7.0PHP 8.0+
Downloads · 7d19▼ -65.5% week over week
Nosso veredicto

Escolha sólida

SRI Shield is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites and was last updated 4 weeks ago, and scores 66/100 on our health check.

  • Desenvolvido ativamente — última atualização 4 semanas atrás
  • Testado com as últimas WordPress (7.1)
  • Pequena base de usuários (10+ instalações ativas)
  • Muito poucos comentários até agora

Como ele se acumula?

Lado a lado em instalações, atualizações, avaliações e suporte

Downloads diários

193958Oct 29Nov 13Nov 28
Ontem0
Média diária (1y)13
Dia de pico785 de novembro de 2026
Últimos 12 meses392

Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.

Rankings

Where SRI Shield stands today

WordPress.org Classificações de pesquisa

Posição ao vivo na pesquisa de plugins, top 100
Palavra chavePosiçãoPlugins concorrentesCategoria
hardening >100 2,819 Best hardening plugins →
script integrity #39 497 Best script integrity plugins →
segurança >100 10,000 Melhores plugins de segurança →
SRI #6 100 Best SRI plugins →
subresource integrity #4 30 Best subresource integrity plugins →

Adoção da versão

Compartilhamento de sites ativos por lançamento.

  • 1.2100.0%

About SRI Shield

From the official readme · v1.2.0

Descrição

Add Subresource Integrity hashes to enqueued scripts and styles, approve changed files before they are trusted, and scan pages for missing SRI.

🛡️ Subresource Integrity for Your Enqueued Assets

SRI Shield records a cryptographic hash (an SRI hash) for each enqueued script and stylesheet the first time it is served, and adds the integrity and crossorigin attributes to its tag. A visitor’s browser compares each file it downloads with that hash and refuses to use a file whose content does not match.

Changed files wait for your approval. When a protected file’s content changes — after a theme, plugin, or WordPress update, or because the file was modified — SRI Shield keeps serving the previously trusted hash and flags the change for review. Browsers refuse the changed file until an administrator compares the trusted and proposed hashes and either approves the new hash or keeps the trusted one. SRI Shield never re-trusts a changed file on its own.

What SRI does and does not do. SRI confirms that a file’s content matches a hash; it does not judge whether a file is safe. The first hash for each file is taken from the content the file has at that moment, so a file that was already compromised when it was first hashed is not detected. Generating hashes automatically is not, by itself, protection against malicious changes — that is why changes require review.

✨ Why Choose SRI Shield?

  • Automatic Enrollment — Enqueued scripts and stylesheets receive an integrity hash the first time they are served.
  • Review Before Trust — A changed file keeps its trusted hash until you approve the new one.
  • Local and External Coverage — Files from your theme and plugins, and files loaded from CDNs and other remote services that your server can fetch.
  • Page-by-Page Verification — The scanner checks every script and stylesheet tag on every scanned page.
  • Alerts — Branded email reports when a scan finds a problem.
  • Invisible to Visitors — No new buttons, messages, or layout changes.

⚙️ How It Works

  • Enroll — The first time your site serves an enqueued script or stylesheet, SRI Shield hashes its current content and stores that hash as trusted.
  • Protect — The integrity and crossorigin attributes are added to the file’s tag.
  • Verify — Each visitor’s browser compares the file it received against the hash and blocks it if they do not match.
  • Detect changes — With Change Detection on, SRI Shield notices when a local file’s modification time or size changes and hashes it again. Scans and re-checks compare every stored hash with freshly fetched content, including remote files.
  • Review — Changed files are listed under Hash Records > Changes Awaiting Review with the trusted and proposed hashes side by side. Approve the new hash once you have confirmed the change is expected, or keep the trusted hash.
  • Monitor — Run the scanner to check your pages. If it finds a problem, it can alert you by email.

🧩 Features at a Glance

  • Automatic SRI Enrollment — Generates SRI hashes for enqueued CSS and JavaScript the first time they are served and injects the integrity and crossorigin attributes through WordPress loader hooks.

  • Change Review — When a protected file’s content changes, the trusted hash stays in place and the change waits for an administrator. Approving re-fetches the file and succeeds only if it still produces the exact hash you reviewed. Every approval and dismissal is recorded in the Logs.

  • Local, CDN & Remote File Support — Covers assets hosted on your own site and assets hosted on CDNs and other remote services, when they are accessible from your server.

  • Three Hash Algorithms — Choose SHA-256, SHA-384, or SHA-512. SHA-384 is the default and is recommended for almost all sites. Changing the algorithm re-encodes a stored hash only after the file’s content is confirmed unchanged.

  • Change Detection — Optionally checks local files for changes (modification time and size) as pages load, so changed files are flagged without waiting for a scan.

  • Stored Hashes — Hashes are stored in a database table (with a short-lived cache for remote files) and reused, so files are not re-hashed on every visit.

  • Website Scanner — Fetches your home page and recent posts and pages and analyzes the HTML your server returns. Every script and stylesheet tag on every page is checked on its own, so a file that is protected on one page and unprotected on another is reported on the page where it is unprotected. Results: Valid, Missing, Invalid attribute, Hash mismatch, Crossorigin missing, or Unreachable. Scan depth is adjustable from 1 to 200 pages per run (default 25).

  • Email Alerts — Sends a responsive HTML email when a scan finds a problem, to the address you choose (your site admin email by default).

  • Hash Records — Every enrolled file with its URL, type, algorithm, trusted integrity hash, status, and last-updated time, plus a Copy button for the hash and the list of changes awaiting review.

  • Hash an External URL — Enter the address of an external file to hash it on demand. If the URL is already stored, it is re-checked instead and any change waits for review.

  • Exclusions — Skip specific assets by handle, or exclude and re-include individual files from Hash Records.

  • Activity Logs — A record of plugin activity, including every hash approval and dismissal, with export, plus optional structured debug logging.

  • Maintenance Tools — Reset Cache (clears cached lookups and failed-asset records; trusted hashes and pending reviews are kept) and Re-check Hashes (hashes every registered asset again; changes are flagged for review).

  • Optional Admin Coverage — Extend integrity attributes to the WordPress admin area as well as the public site.

  • Multisite Ready — Multisite-compatible activation, and it cleans up after itself on uninstall.

  • Developer Hooks — Filters and actions to override the algorithm per handle, exclude handles dynamically, change the crossorigin attribute, add scan URLs, customize alert emails, and react to scan, change, and approval events.

🔍 Scan Results

Run a scan and every script and stylesheet on your checked pages, plus every stored hash record, gets a result:

  • Valid — The integrity attribute is valid and matches the content currently served.
  • Missing — The file is served without an integrity attribute on that page.
  • Invalid attribute — The integrity attribute is empty or contains no valid hash, so browsers load the file without an integrity check.
  • Hash mismatch — The content no longer matches the declared or trusted hash, so browsers refuse it. This can come from a legitimate update or from a modification. For a stored record, the change is listed under Hash Records for review.
  • Crossorigin missing — A cross-origin file has a correct hash but no crossorigin attribute, so browsers cannot verify it and refuse to load it.
  • Unreachable — The file could not be fetched to be checked. Its trusted hash, if any, is kept.

Scanner scope: the scanner analyzes the HTML your server returns. It does not run JavaScript, so scripts and stylesheets added at runtime — for example by tag managers, consent tools, or lazy loaders — are not detected. It also cannot check whether a remote host sends the CORS headers that cross-origin SRI requires.

The Scanner keeps a short history of recent scans, and stored results can be cleared whenever you like.

📧 Alerts That Match Your Brand

Alert emails are fully brandable from the Notifications screen:

  • Logo — shown at the top of the email (your site name is used if none is set).
  • Accent Color — the header and button color (default blue, #2563EB).
  • Header Title — the headline of the email (default “SRI Shield Security Alert”).
  • Footer Text — small print at the bottom (default: your site name).
  • Recipient — the address that receives alerts (default: your site admin email).
  • Send Test Email — preview the design and confirm delivery before you rely on alerts.

🔐 Built for Administrators

SRI Shield is an administrative tool. Every screen, setting, and review action is restricted to users who can manage site options — the Administrator role on a standard WordPress site. Editors, Authors, Contributors, Subscribers, and visitors never see the plugin’s controls and cannot approve hash changes.

🔒 Privacy & External Services

SRI Shield runs inside your own WordPress site. To do its job, it makes the following requests from your server:

  • Your own pages — the Scanner requests pages of your own website to check the files they load.
  • Files your site already uses — to hash or verify a remote script or stylesheet (for example one hosted on a CDN), the plugin requests that file from its own address using a secure HTTP request. This is the same file your visitors’ browsers already download.
  • Alert emails — notifications are sent using your site’s own email setup, to the recipient you choose.

💡 Best For

  • Sites that load scripts or styles from CDNs and other third-party services.
  • Site owners who want to be told when a protected file changes, and to decide whether to trust the change.
  • Agencies and teams that need an auditable record of enrolled files and approved changes.
  • Developers who want hooks to tune hashing, scanning, and alert emails.

Developer Filters and Actions

Below are commonly used extension points.

Override whether the plugin is enabled

add_filter( 'sri_shield_enabled', function ( $enabled ) {
    return $enabled;
} );

Exclude handles dynamically

add_filter( 'sri_shield_excluded_handles', function ( $handles ) {
    $handles[] = 'my-dynamic-handle';
    return $handles;
} );

Override the algorithm by handle

add_filter( 'sri_shield_hash_algorithm', function ( $algorithm, $handle, $url, $type ) {
    if ( 'critical-script' === $handle ) {
        return 'sha512';
    }
    return $algorithm;
}, 10, 4 );

Change the crossorigin attribute

add_filter( 'sri_shield_crossorigin_attribute', function ( $crossorigin, $handle ) {
    if ( 'local-only-asset' === $handle ) {
        return '';
    }
    return $crossorigin;
}, 10, 2 );

Modify a hash when it becomes trusted

Applied when an asset is first enrolled and when an administrator approves a change.

add_filter( 'sri_shield_generated_hash', function ( $integrity, $handle ) {
    return $integrity;
}, 10, 2 );

Observe cache, hash, and review events

add_action( 'sri_shield_hash_generated', function ( $handle, $record ) {
    // An asset was enrolled.
}, 10, 2 );
add_action( 'sri_shield_hash_failed', function ( $handle, $record ) {
    // Alerting.
}, 10, 2 );
add_action( 'sri_shield_asset_changed', function ( $record, $context ) {
    // Content no longer matches the trusted hash; $record['pending_integrity'] holds the proposed hash.
}, 10, 2 );
add_action( 'sri_shield_hash_approved', function ( $record, $previous_integrity, $user_id ) {
    // An administrator approved a change.
}, 10, 3 );
add_action( 'sri_shield_hash_change_dismissed', function ( $record, $user_id ) {
    // An administrator kept the trusted hash.
}, 10, 2 );
add_action( 'sri_shield_cache_cleared', function () {
    // External cache sync.
} );

React to scanner findings

add_action( 'sri_shield_tamper_detected', function ( $finding ) {
    // Fired for each hash mismatch. $finding includes page_url, asset_url, declared_integrity, expected_integrity, etc.
} );
add_action( 'sri_shield_scan_completed', function ( $summary, $findings ) {
    // Fired once per scan with the run summary and problem findings.
}, 10, 2 );

Customize the scanner and notification emails

add_filter( 'sri_shield_scan_urls', function ( $urls ) {
    $urls[] = home_url( '/checkout/' );
    return $urls;
} );
add_filter( 'sri_shield_email_subject', function ( $subject, $summary, $findings ) {
    return $subject;
}, 10, 3 );
add_filter( 'sri_shield_email_recipient', function ( $recipient ) {
    return $recipient;
} );

Instalação

WordPress Admin Method

  1. In your WordPress admin, go to Plugins > Add New.
  2. Search for SRI Shield.
  3. Click Install Now, then Activate.
  4. Open SRI Shield from the WordPress admin sidebar.

Manual Method

  1. Carregue a pasta sri-shield para o diretório /wp-content/plugins/.
  2. Open the Plugins screen in WordPress.
  3. Locate SRI Shield and click Activate.

After Activation

  1. Open SRI Shield > Dashboard and confirm the status badge reads “Protection Active”.
  2. Configure the hash algorithm, exclusions, and change detection, then save your settings. SHA-384 is the default and is recommended for most sites.
  3. Open Scanner and run your first scan to check your pages.
  4. Open Notifications, enable email alerts, and send a test email.

Hashes are recorded as your pages are viewed. After you update a theme, plugin, or WordPress itself, open Hash Records and review any changed files: browsers block a changed file until you approve its new hash.

Log de Changes

Security update: changed scripts and stylesheets now need your approval before their new hash is trusted. After updating themes, plugins, or WordPress, review changed files under SRI Shield > Hash Records — browsers block a changed file until you approve it. Existing trusted hashes are kept.

1.2.0

  • Security: Changed assets are no longer re-hashed and trusted automatically. When a protected file’s content changes, its previously trusted hash keeps being served and the change waits for administrator review under Hash Records > Changes Awaiting Review.
  • Security: Approving a change requires the manage_options capability, a valid nonce, an explicit confirmation, and a fresh fetch whose content still produces the reviewed hash. Approvals and dismissals are logged.
  • Security: Reset Cache, Re-check Hashes, Hash an External URL, the per-record Re-check button, hash-algorithm changes, record pruning, and fetch errors can no longer replace or remove a trusted hash.
  • Fix: The scanner evaluates every script and stylesheet occurrence on every page. A protected occurrence on one page no longer hides a missing integrity attribute on another page. Identical findings are merged per page only after evaluation, with an occurrence count, and every stored hash record is verified on each scan.
  • New: The scanner reports empty or invalid integrity attributes and missing crossorigin attributes on cross-origin assets, follows browser rules for multiple hashes, and resolves “../” paths, base URLs, and redirects.
  • Change: The “Auto Regenerate” setting is now “Change Detection” (same stored option). Hash records are keyed by asset instead of by version, file timestamp, or algorithm; existing trusted hashes are migrated on upgrade.
  • Docs: Clarified that the scanner analyzes server-returned HTML and does not run JavaScript, and that SRI verifies content against a hash rather than proving a file is safe.

1.1.0

  • New: Website SRI Scanner that crawls the home page and recent posts/pages, reporting each asset that is missing an integrity hash or fails its integrity check.
  • New: Email notifications with a modern, responsive HTML template. Administrators can set a custom logo, accent color, header title, footer text, and recipient, and send a test email.
  • New: Dedicated Scanner and Notifications admin screens.
  • Improvement: Added a scan-results database table and bumped the schema version; uninstall now removes it.

1.0.0

  • Initial stable release.
  • Local/remote SRI hashing with automatic tag injection.
  • Admin settings page with maintenance tools.
  • Debug logging and extensibility hooks.

Registro de change completo em WordPress.org →

Capturas de tela

Dashboard with protection status, hash cache statistics, and an overview of key features
Dashboard with protection status, hash cache statistics, and an overview of key features
General Settings for enabling SRI, the default hash algorithm, excluded asset handles, auto regenerate, and scanner depth
General Settings for enabling SRI, the default hash algorithm, excluded asset handles…
Maintenance Tools to reset the hash cache or regenerate every integrity hash
Maintenance Tools to reset the hash cache or regenerate every integrity hash
Scanner screen with the latest scan summary and per-asset results for valid, missing, tampered, and unreachable assets
Scanner screen with the latest scan summary and per-asset results for valid, missing…
Hash Records screen to hash an external CDN URL and manage every stored integrity hash
Hash Records screen to hash an external CDN URL and manage every stored integrity hash
Notifications screen with tamper alert emails, email branding options, and Send Test Email
Notifications screen with tamper alert emails, email branding options, and Send Test Email
Logs screen with activity filtered by level, search, and CSV export
Logs screen with activity filtered by level, search, and CSV export

Para desenvolvedores

Este é o seu plugin? Mostre os números.

Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.

Selo de Instalações Ativas Selo de classificação Distintivo de pontuação de saúde

Best SRI Shield alternatives

All hardening plugins →
Alternativas
Classificação Plugin Instalações ativas Classificação Atualizada Saúde
1 BetterShield – Security Audit, Hardening, 2FA, Passkeys & Activity Log BetterShield Free WordPress security audit with 30 hardening fixes you can undo, 2FA, passkeys, login… por WPDeveloper 2K+ ★★★★★★★★★★ 5 (1) 9 horas atrás 78
2 NETSENSAI Shield NETSENSAI Shield Hardens and protects your site by locking down login, REST API, XML‑RPC, file editor, and… by Rafal Gierlicki 1K+ ★★★★★★★★★★ 5 (5) 3 meses atrás 72
3 CMS ADMINS Security Check Report CMS ADMINS Security Check Report Read-only security audit for WordPress: 64 checks including PHP2Shell and NGINX2Root, an A… by Patrick Schlesinger 500+ ★★★★★★★★★★ 5 (2) 1 semana atrás 77
4 Security Hardener Security Hardener Hardens WordPress with secure headers, login protection, user enumeration blocking, rate… by Marc Armengou 200+ ★★★★★★★★★★ Sem comentários 4 dias atrás 69
5 SAR One Click Security SAR One Click Security Adds some extra security to your WordPress with only one click. Por Samuel Aguilera 200+ ★★★★★★★★★★ 5 (7) 2 anos atrás 41
6 Lockora Security Audit – Security Scanner, Hardening & Integrity Lockora Security Audit WordPress security scanner, hardening & core file integrity audit. Detect hidden admins… by Guido Schad 200+ ★★★★★★★★★★ 5 (6) 2 dias atrás 81
7 WP Guardian – Security Hardening Checklist & Lightweight Firewall WP Guardian For site owners who want an honest hardening checklist, not a heavy security suite: what to… by Ciprian Popescu 100+ ★★★★★★★★★★ 5 (1) 3 dias atrás 75
8 Secure HTTP Headers Secure HTTP Headers Secure HTTP headers - Essential, and easy. by shasha310 100+ ★★★★★★★★★★ 3 (2) 6 anos atrás 26
9 Aipatch Security Scanner Aipatch Security Scanner WordPress security scanner with 36 checks, malware scanning, core integrity verification… by Esteban 100+ ★★★★★★★★★★ Sem comentários 7 meses atrás 47
10 Dessky Security Dessky Security Dessky Security is the ultralight plugin for basic Security Hardening. It is specially… por Desky 70+ ★★★★★★★★★★ 5 (2) 1 mês atrás 71

FAQ

SRI Shield: quick answers

Respostas diretas, extraídas de dados ao vivo WordPress.org.

Fonte: WordPress.org

Is SRI Shield free?

Yes. SRI Shield is free to download and use from the official WordPress.org plugin directory.

Is SRI Shield safe to use in 2026?

SRI Shield is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites and was last updated 4 weeks ago, and scores 66/100 on our health check.

How many websites use SRI Shield?

SRI Shield is active on 10+ WordPress websites and has been downloaded 382 times since it launched in October 2026. It was downloaded 353 times in the last 30 days.

Does SRI Shield work with WordPress 7.1?

Yes. The developer has tested SRI Shield up to WordPress 7.1.5, the latest release. It requires WordPress 7.0 or newer.

What PHP version does SRI Shield need?

SRI Shield requires PHP 8.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was SRI Shield last updated?

The latest version, 1.2.0, was released on November 5, 2026 (4 weeks ago).

Who makes SRI Shield?

SRI Shield is developed and maintained by SPINX Digital.

What are the best alternatives to SRI Shield?

The most popular alternatives to SRI Shield are BetterShield (2K+ installs), NETSENSAI Shield (1K+ installs) and CMS ADMINS Security Check R… (500+ installs).

Alimentado por PageForge

Um modelo e uma planilha. Uma página real para cada pesquisa.

PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.

  • CSV e XLSX, mais Google Sheets em Profissional e Empresarial
  • Seu próprio título, URL, SEO campos e esquema para cada página
  • Funciona com o editor de blocos, Elementor, Divi e Avada
  • Gratuito em WordPress.org, sem cartão de crédito

↑↓ mover↵ abrir