Web Shield

    by v kiet

    1

    Frontend code is exposed by design, making it trivial for competitors to clone landing pages or scrape proprietary 3D assets.

    Free

    Security scanned

    Works with the AI Agents you already use

    Web Shield

    Example session with this skill installed

    Run a strict shield on my ./dist folder. Lock it to app.com and vault all 3D assets. I need to test it on localhost too.

    • Read your context and instructions
    • Compiled the web shield

    I have completed the hardening process for your static build. The assets have been vaulted and the domain lock is active.

    Shielding Report: app.com

    MetricResult
    Framework DetectedVite / React
    Protection Modestrict
    Allowed Domainsapp.com, localhost
    Source Maps Purged12 files
    Vaulted Assets (.vlt)4 (hero.vlt, map-data.vlt, shader-core.vlt, scene.vlt)
    Anti-Bot StatusActive (Headless Blocked)
    Integrity WatermarkWS-8829-XQ-001
    VerificationPASS
    
    # Verification Details
    node skills/web-shield/scripts/verify.mjs --dir ./dist-shielded --domain app.com --json
    {
      "status": "success",
      "checks": {
        "domain_lock": "verified",
        "asset_encryption": "AES-256-GCM",
        "hydration_integrity": "preserved",
        "leaked_maps": 0
      }
    }
    

    Next steps

    1. Deploy the contents of ./dist-shielded to your production environment.
    2. Visit the site on an unauthorized domain to verify the --action blank behavior.
    3. Check the browser console to confirm all sensitive debugger and console logs are stripped.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Hardens compiled static websites (Vite, Next.js static export, Astro, plain HTML/JS/WebGL) against automated scraping, source-map leaks, unauthorized domain rehosting, and raw asset theft (.glb, .json, shaders) using zero-dependency Node.js scripts and AES-256-GCM asset vaulting.

    Frontend code is exposed by design, making it trivial for competitors to clone landing pages or scrape proprietary 3D assets. This skill hardens compiled static builds against unauthorized rehosting and asset theft.

    What it does

    • Source Map Purging identifies and removes .map files and sourceMappingURL references to prevent original source code reconstruction.
    • Domain Locking injects polymorphic XOR guards that prevent the site from functioning if hosted on unauthorized domains.
    • Asset Vaulting encrypts sensitive static files like .glb, .gltf, and .json using AES-256-GCM, unlocking them only at runtime on allowed hosts.
    • Anti-Bot Protection blocks headless automation and navigator.webdriver signatures while maintaining compatibility with major search engine crawlers.
    • Scraper Honeypots implements WCAG-safe invisible elements to trigger detection for automated scraping tools.

    How it works

    1. Reconnaissance runs a discovery script against the build directory to detect the framework (Vite, Next.js, Astro) and locate leaked maps or vaultable assets.
    2. Mode Selection determines the protection level—Light, Balanced, or Strict—based on the threat model and asset sensitivity.
    3. Shielding applies the selected transformations to the compiled artifacts, specifying allowed deployment domains and unauthorized access behaviors like redirects or overlays.
    4. Verification executes the build in a sandboxed VM to ensure integrity watermarks are present and domain locks function as expected.

    Frameworks & tools

    This tool works with any static build output including Vite, Next.js static exports, Astro, and plain HTML/JS/WebGL. It integrates with javascript-obfuscator for AST-level hardening.

    Why this beats prompting it yourself

    Manual obfuscation often breaks framework hydration or destroys SEO. This skill follows framework-specific rules to ensure protection doesn't interfere with React/Next.js runtime chunks or accessibility standards.

    Use cases

    • Client Previews prevent clients from hosting a project before the final invoice is paid.
    • 3D WebGL Showcases protect expensive proprietary .glb models and custom shaders from being downloaded and reused.
    • Commercial Templates stop unauthorized mirrors and clones of high-value landing page designs.

    Known limitations

    Does not mutate src/ files directly. Requires a compiled build directory as input. Advanced obfuscation requires javascript-obfuscator to be installed in the project.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 6 days ago

    • Free with an Agensi account

    Software
    serveNode.js

    Permissions

    Terminal / Shell
    Browser
    Network Access
    Read Files
    Write Files
    Listed6 days ago

    What's inside

    Creator

    v kiet

    v kiet

    Frequently Asked Questions

    Web Shield protects your intellectual property by preventing competitors from cloning your landing pages, stealing proprietary 3D assets (like .glb files), or reconstructing your source code via leaked map files. It ensures your static builds only function on authorized domains.

    This skill is compatible with any AI agent that has file-system access to your project's build directory and can execute terminal commands. It works seamlessly across major frameworks like Next.js, Vite, and Astro without breaking site hydration.

    Web Shield is designed to be SEO-friendly; while it hardens your code against bots and scrapers, it includes specific bypass rules for major search engine crawlers to ensure your indexing and rankings remain unaffected.

    No, Web Shield operates on your compiled artifacts (e.g., the /dist or /out folders) rather than your raw source code. This ensures your development workflow remains clean while the final, deployed product is fully protected.

    You will receive the Web Shield logic package, integration guides for popular CI/CD pipelines, and a set of predefined protection profiles (Light, Balanced, and Strict) to match your specific security needs.

    Domain locking uses polymorphic XOR guards injected into your build that check the current hosting environment at runtime. If the site is moved to an unauthorized domain, the skill triggers a customizable response, such as a redirect or a UI overlay, rendering the clone useless.

    New in Frontend & Web Apps

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.

    Free