🎯 Content Injection Server
Transparent content delivery system
System Status
Checking...
🔗 Step 2: Use in External Website
Add this to your HTML on the external website:
<!-- Container for injected content -->
<div id="injected-content"></div>
<!-- Injection script -->
<script src="http://localhost:3000/main.js?token=YOUR_TOKEN"></script>
Replace YOUR_TOKEN with the token from Step 1.
The content will load automatically without any visible redirect.
💡 How It Works
1. Create Session: Get unique session token
2. Share Script: Add main.js to external website with token
3. Automatic Injection: Content loads silently, URL stays unchanged
4. Dynamic Updates: Change content by updating PocketBase record
📊 PocketBase Record Structure
Your record should have these fields:
{
"id": "record_id",
"secret": "secret_key",
"content": "<h1>Your HTML here</h1>",
"html": "Alternative field name for HTML"
}
🔐 Security Notes
- ✅ No URLs visible to users
- ✅ Session tokens auto-expire in 24 hours
- ✅ Secret validation on each request
- ✅ CORS ready for external domains
- ✅ Supports HTTPS in production