HGT Security SDK

Built by Henry Global Tech Industry. Management allocation: $10,000.

Web Integration Masterclass

Deploy the HGT Guardian using these four exact configurations to secure your platforms.

1. The Gatekeeper (First Redirect)

Locks the entire page until the human user passes the security check.

Gatekeeper - index.html
<!DOCTYPE html>
<html>
<head>
    <!-- Hides body entirely -->
    <style> body { display: none; } </style>
    <script src="https://henrykamsi.github.io/hgt-guardian/hgt-guardian.js"></script>
</head>
<body>
    <div id="protected-content">Your Website Content Here</div>
    <script>
        window.addEventListener('load', function() {
            HGT_Guardian.init({
                brand: 'Your Brand',
                mode: 'full',
                onSuccess: function() { 
                    document.body.style.display = 'block'; 
                }
            });
        });
    </script>
</body>
</html>

2. Secure Login

Reveals the login form only after verification to prevent bot brute-forcing.

Secure Login Form
<div id="hgt-login-form" style="display:none;">
    <h3>Login</h3>
    <input type="email" placeholder="Email">
    <input type="password" placeholder="Password">
    <button>Login</button>
</div>
<script src="https://henrykamsi.github.io/hgt-guardian/hgt-guardian.js"></script>
<script>
    window.addEventListener('load', function() {
        HGT_Guardian.init({ 
            onSuccess: function() {
                document.getElementById('hgt-login-form').style.display = 'block';
            }
        });
    });
</script>

3. Secure Sign Up

Ensures only real humans can create accounts. Stops bot spam completely.

Secure Sign Up Form
<div id="hgt-signup-form" style="display:none;">
    <h3>Create Account</h3>
    <input type="text" placeholder="First Name">
    <input type="text" placeholder="Last Name">
    <input type="email" placeholder="Email">
    <input type="password" placeholder="Password">
    <input type="password" placeholder="Confirm Password">
    <button>Sign Up</button>
</div>
<script src="https://henrykamsi.github.io/hgt-guardian/hgt-guardian.js"></script>
<script>
    window.addEventListener('load', function() {
        HGT_Guardian.init({ 
            onSuccess: function() {
                document.getElementById('hgt-signup-form').style.display = 'block';
            }
        });
    });
</script>

4. The Combined Master Architecture

One security check unlocks multiple views simultaneously (Single Page Architecture).

Combined Master Logic
<style> .hgt-secure-zone { display: none; } </style>

<!-- Protected Views -->
<div id="home-view" class="hgt-secure-zone">Welcome to the App</div>
<div id="login-view" class="hgt-secure-zone"><input type="email"><button>Login</button></div>
<div id="signup-view" class="hgt-secure-zone"><input type="text"><button>Sign Up</button></div>

<script src="https://henrykamsi.github.io/hgt-guardian/hgt-guardian.js"></script>
<script>
    window.addEventListener('load', function() {
        HGT_Guardian.init({
            brand: 'HGT Unified System',
            onSuccess: function() {
                // Instantly unlock all secure zones
                let zones = document.querySelectorAll('.hgt-secure-zone');
                zones.forEach(zone => zone.style.display = 'block');
            }
        });
    });
</script>

Android OS WebView Integration

Inject the HGT Guardian JS link via WebView to secure native screens.

MainActivity.java
WebView webView = findViewById(R.id.webview);
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setDomStorageEnabled(true);
webView.setWebChromeClient(new WebChromeClient());

// Inject HTML Container & Link Script
String hgtHtml = "<html><body><script src='https://henrykamsi.github.io/hgt-guardian/hgt-guardian.js'></script><script>HGT_Guardian.init({ onSuccess: () => HGTBridge.postMessage('VERIFIED') });</script></body></html>";
webView.loadData(hgtHtml, "text/html", "UTF-8");

// Listen for Success
webView.addJavascriptInterface(new Object() {
    @JavascriptInterface
    public void postMessage(String status) {
        if ("VERIFIED".equals(status)) {
            runOnUiThread(() -> {
                // Unlock Android Native UI
                findViewById(R.id.nativeAppLayout).setVisibility(View.VISIBLE);
            });
        }
    }
}, "HGTBridge");

iOS Swift Integration

Inject the HGT Guardian JS link via WKWebView to secure native Apple screens.

ViewController.swift
let htmlString = "<html><body><script src='https://henrykamsi.github.io/hgt-guardian/hgt-guardian.js'></script><script>HGT_Guardian.init({ onSuccess: () => window.webkit.messageHandlers.HGTBridge.postMessage('VERIFIED') });</script></body></html>"
webView.loadHTMLString(htmlString, baseURL: nil)

extension ViewController: WKScriptMessageHandler {
    func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) {
        if message.name == "HGTBridge", let status = message.body as? String {
            if status == "VERIFIED" {
                DispatchQueue.main.async {
                    // Unlock iOS Native UI
                    self.mainAppView.isHidden = false
                }
            }
        }
    }
}