Lock the Gates: How to Give VIP Access to Your Docs
Ever wanted your documentation site to be open only to the people you choose?
With DocStar + Cloudflare, you can let in just your team, certain clients, or even a single IP—while keeping everyone else out.
Here’s how to do it, step by step
Step 1: Hook Up Your Custom Domain in DocStar
1️⃣ Go to Custom Domain in your DocStar dashboard.
Example: You own viasocket.com and want docs.viasocket.com
to show your beautiful DocStar-powered docs.
2️⃣ Add your domain or subdomain:
CopyEdit
docs.viasocket.com
3️⃣ In Cloudflare, add a CNAME record:
Type: CNAME
Name: docs
Target:
project123.platform.com
(provided by us)Proxy Status: ☁️ Proxied (Orange cloud ON)
💡 Pro tip: This keeps your domain polished, fast, and secure.
Step 2: Give Access Only to the Chosen Few
Once your docs are live on your custom domain, it’s time to add the velvet rope.
1️⃣ Log into Cloudflare.
2️⃣ Go to Security → WAF → Firewall Rules → Create Rule.
3️⃣ Add this expression in the editor:
arduino
CopyEdit
(http.host eq "docs.viasocket.com" and not ip.src in {103.25.59.0/24 192.168.5.10})
Here’s the magic behind it:
http.host eq "docs.viasocket.com"
→ Targets only your docs subdomain.ip.src in {…}
→ The VIP guest list (allowed IPs).not ip.src in {…}
→ Everyone else hits the bouncer.
4️⃣ Choose Block or Challenge (CAPTCHA).
5️⃣ Click Deploy.
Step 3: Test Like a Pro
From an allowed IP → ✅ Opens flawlessly.
From another IP (try mobile data) → ❌ Cloudflare block page.
Why This Rocks for DocStar Users
Keep your public site open to everyone.
Protect your internal docs for specific teams.
Add multiple IPs for multiple clients.
Final Tip:
If your IP changes often, you’ll need to update it in Cloudflare. But for stable office networks, this setup is a "set-and-forget" win.