Security Model
Strict Mode Protocol
Zepra Browser — Strict Mode Security Policy
Zepra operates in Strict Mode by default, prioritizing:
- User privacy
- Predictable behavior
- Performance stability
- Reduced attack surface
Strict Mode is designed to prevent abuse while preserving core web functionality.
🛡️ Strict Web Rules
Strict Mode protects users from:
- Cross-site tracking
- Cookie theft
- Malicious redirects
- Spam prompts and overlays
- UX manipulation
🚫 Content Policy
Blocked or Restricted Content
| Content Type | Action | Reason |
|---|---|---|
| Third-party cookies | BLOCK | Tracking prevention |
| Popup windows | Require user gesture | Anti-spam |
| Auto-playing media | Muted by default | UX protection |
| Audio playback | Requires user gesture | Abuse prevention |
| Notification prompts | 1 per session | Anti-spam |
| Downloads | Require user gesture | Malware prevention |
| Redirect chains | Max 3 hops | Anti-phishing |
📢 Ad Behavior Policy
Zepra enforces behavior-based ad rules at the engine level, not ad blocking via lists.
| Ad Behavior | Action |
|---|---|
| Overlay ads (cover content) | BLOCK |
| Interstitial ads (pre-content) | BLOCK |
| Auto-expanding ads | BLOCK |
| Fake close buttons | BLOCK |
| Inline static ads | ALLOW |
| Sidebar ads | ALLOW |
🔒 Cookie Policy
- Default: First-party only
- Third-party: BLOCKED
- SameSite: Strict (default)
- HttpOnly: Enforced for sensitive cookies
- Partitioning: Per top-level origin
Cookie Theft Prevention
- No
document.cookieaccess in cross-origin contexts - Cookie access restricted to same-site frames
- Automatic expiry heuristics for tracking behavior
📜 ZepraScript Restrictions
Blocked or Restricted APIs (Strict Mode)
document.cookie; // Blocked in cross-origin
window.open(); // Requires user gesture
Notification.requestPermission();// Limited calls
navigator.geolocation; // Coarse accuracy onlyRate-Limited APIs
alert(): 3 per pageconfirm(): 3 per pageprompt(): 1 per pagewindow.open(): 1 per gesture
⚙️ Implementation Model
ContentPolicy Interface
class ContentPolicy {
public:
enum class Mode { Strict, Compatible };
bool allowThirdPartyCookies() const;
bool allowPopups() const;
bool allowAutoplayMuted() const;
bool allowAudioPlayback() const;
int maxRedirects() const;
};