| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| OpenPublisher-5-x86_64.AppImage | 2026-10-04 | 166.4 MB | |
| openpublisher5_amd64-windows-portable.exe | 2026-10-04 | 183.2 MB | |
| openpublisher5_amd64-windows.exe | 2026-10-04 | 165.2 MB | |
| openpublisher5_amd64-macos.dmg | 2026-10-04 | 233.1 MB | |
| openpublisher5_amd64-linux.run | 2026-10-04 | 193.4 MB | |
| openpublisher5_amd64-linux.rpm | 2026-10-04 | 215.4 MB | |
| openpublisher5_amd64-linux.flatpak | 2026-10-04 | 153.6 MB | |
| openpublisher5_amd64-linux.deb | 2026-10-04 | 156.2 MB | |
| openpublisher5_amd64-freebsd.pkg | 2026-10-04 | 185.5 MB | |
| 5.3.1_ International Sanctions Compliance _ Geographic Defense Engine (Iran (IR)) source code.tar.gz | 2026-10-04 | 22.4 MB | |
| 5.3.1_ International Sanctions Compliance _ Geographic Defense Engine (Iran (IR)) source code.zip | 2026-10-04 | 22.7 MB | |
| README.md | 2026-10-04 | 12.0 kB | |
| Totals: 12 Items | 1.7 GB | 0 | |
🚀 Summary
Version 5.3.1 introduces a comprehensive expansion of Open Publisher's application-layer geographic defense engine, enforcing a complete access restriction on connections originating from the Islamic Republic of Iran (IR) alongside the Russian Federation (RU).
Following mandatory statutory compliance requirements under international trade sanctions, OFAC export controls, European Union embargoes, and UK financial sanctions, this release establishes multi-tiered automated regional blocking. Connections originating from Iran are intercepted before the publishing workspace initializes and presented with a dedicated, unblockable compliance card featuring the traditional Iranian tricolor (Green, White, Red), bilingual Persian/English legal text, and an unambiguous solidarity statement supporting universal human rights, civil liberties, and the freedom of expression.
In addition, version 5.3.1 completes a full ecosystem cache synchronization: updating the Service Worker cache (open-publisher-v5-3-1), refreshing PWA registration (sw.js?v=5.3.1), modernizing template loaders, and synchronizing cachebusters across all application components to ?v=5.3.1.
🔍 Context & Problem Analysis
Digital publishing platforms and client-side web software operating globally are subject to strict regulatory, statutory, and security obligations:
-
Statutory International Sanctions & Export Regulations: Under international trade controls, United States OFAC regulations, European Union Council regulations, and UK statutory instruments, commercial software services, web tools, and digital platforms are legally prohibited from being exported, licensed, or made accessible to individuals and state-affiliated organizations operating within the Islamic Republic of Iran.
-
Mitigation of Unauthorized Activity and Service Misuse: Recent server telemetry and proxy rotation logs identified elevated, unauthorized automated activity originating from Iranian IP allocations. Maintaining compliance and protecting platform infrastructure necessitated automated geographic interception to halt traffic before workspace initialization.
-
Digital Surveillance and Anti-Censorship Stance: The Iranian state apparatus enforces severe domestic internet censorship, widespread digital surveillance, and human rights suppression against its civilian population. A dedicated compliance notice must clearly distinguish between state-level statutory restrictions and steadfast solidarity with the fundamental rights and freedoms of the Iranian people.
🛠️ Multi-Layered Defense Architecture
Open Publisher implements a redundant, zero-latency detection and interception pipeline in extensions/geo-defense.js, executing early in the document <head>:
1. Cloudflare Edge CDN Trace Interception (/cdn-cgi/trace)
During bootstrap, Open Publisher queries the reverse proxy trace endpoint (/cdn-cgi/trace). If the edge server's authoritative ISO 3166-1 alpha-2 country header matches loc=IR (or loc=RU), the execution loop terminates immediately and engages the block screen before any stylesheets, fonts, or workspace templates load.
2. Redundant Public IP Geolocation Fallback (api.country.is)
If the CDN trace endpoint is unreachable, blocked, or bypassed, the engine dispatches a secondary asynchronous query to https://api.country.is/ to evaluate client country origin.
3. System Timezone & Persian Locale Heuristic Detection
To prevent bypasses by clients utilizing misconfigured local proxies or VPN tunnels that leak host environment telemetry, the engine performs heuristic client inspection:
- Evaluates the host system clock against Iranian timezones (
Asia/Tehran,Iran). - Evaluates navigator language preferences for Persian / Farsi language tags (
fa,fa-IR,pes). - When a client exhibits the Tehran system timezone or pairs Persian language tags with an Iranian timezone, the block sequence engages automatically.
4. Early <head> Execution & Zero-Latency Session Persistence
- Positioned at the very top of
<head>inindex.html(extensions/geo-defense.js), the engine runs prior to DOM parsing and ribbon construction. - When an IP or client environment is identified as Iranian, the engine stores persistence flags in both
sessionStorageandlocalStorage(op_ir_blocked = '1',op_geo_blocked_country = 'IR'). Subsequent page refreshes, tab navigations, or document opens halt instantly without redundant network latency.
5. Tailored High-Impact Sanctions & Civil Rights Block Card
When triggered, the entire document DOM is cleared and replaced with a standalone, unblockable modal card:
- Iranian Tricolor Flag: Formatted with three equal horizontal bands of Green (
#239f40), White (#ffffff), and Red (#da0000), complete with rounded corners and realistic elevation shadow. - Tricolor Theme Accent Borders: Framed by a 4px Green top border and 4px Red bottom border on a deep navy card (
#151d30). - Sanctions Status Badge: Displays
جمهوری اسلامی ایران (IR) : دسترسی مسدود است(Islamic Republic of Iran (IR): Access Blocked). - Primary & Secondary Headings: Highlights
دسترسی مسدود استin bold Persian typography andACCESS RESTRICTEDin small caps. - Bilingual Legal Statement & Notice:
- English: "Access to Open Publisher has been completely restricted for connections originating from Iran in strict compliance with international sanctions, trade embargoes, and export compliance regulations. This platform strictly prohibits access by entities and jurisdictions subject to international sanctions, and stands in unwavering support of universal human rights, civil liberties, and the freedom of expression."
- Persian (RTL): "دسترسی به اوپن پابلیشر (Open Publisher) برای اتصالات با مبدا ایران در راستای پایبندی به تحریمهای بینالمللی و مقررات کنترل صادرات نرمافزار به صورت کامل مسدود شده است. این پلتفرم هرگونه استفاده توسط نهادهای مشمول تحریمها را اکیداً ممنوع دانسته و در کنار حقوق اساسی بشر، آزادی زنان، برابری مدنی و گردش آزاد اطلاعات میایستد."
- Solidarity Footer: "🕊️ زن، زندگی، آزادی / Woman, Life, Freedom" rendered in emerald green (
#34d399).
6. Developer Audit & Simulation Tooling
To facilitate compliance audits and continuous integration validation:
window._simulateIranGeoBlock(): Renders the Iran sanctions compliance block screen instantly.window._simulateRussiaGeoBlock(): Preserves full backwards compatibility for the Russia / Ukraine restriction screen.window._resetGeoBlock(): Clears all session and local storage restriction flags and reloads into the standard workspace.
7. Recommended Edge WAF Rules
Web administrators fronting Open Publisher with Cloudflare can deploy corresponding edge firewall rules for zero-byte edge termination:
Field: Country
Operator: in
Value: Iran (IR), Russian Federation (RU)
Action: Block
🛠️ Files Modified
- geo-defense.js: Expanded geographic defense engine to restrict Iran (IR) alongside Russia (RU) with Cloudflare trace parsing,
Asia/Tehrantimezone heuristics, Iranian tricolor flag, RTL Persian text, and "Woman, Life, Freedom" solidarity footer. - index.html: Synchronized all 77 script, stylesheet, and module cachebusters across the application from
?v=5.3.0to?v=5.3.1. - sw.js: Bumped Service Worker cache name to
open-publisher-v5-3-1and updated header comment. - pwa-install.js: Updated Service Worker registration to
sw.js?v=5.3.1and bumped header comment to(v5.3.1). - dashboard.js: Synchronized template index and file fetch cachebusters to
?v=5.3.1. - templates.js: Synchronized template loaders to
?v=5.3.1. - arrow.js: Bumped version header comment and initialization log to
(v5.3.1).
🧪 Verification & Automated Testing
All updates were validated via an automated Playwright test suite (scratch/test_iran_geo_defense.py):
| Test Condition | Execution Vector | Result | Output Details |
|---|---|---|---|
| Iran Block Simulation | window._simulateIranGeoBlock() DOM injection |
Passed | Renders Iranian tricolor, Persian heading, sanctions text, and Woman Life Freedom footer |
| Storage Reload Persistence | Page reload with op_ir_blocked flag |
Passed | Automatically halts workspace loading and renders Iran restriction screen immediately |
| Asia/Tehran Timezone Heuristic | Emulated Asia/Tehran + fa-IR environment |
Passed | Automatically identifies client origin and engages Iran block screen |
Cloudflare Trace loc=IR |
Intercept /cdn-cgi/trace with loc=IR |
Passed | Edge network trace accurately triggers Iran block screen |
| Russia Block Compatibility | window._simulateRussiaGeoBlock() verification |
Passed | Preserves Ukrainian flag, Russian text, and Stand with Ukraine footer |
| Geo-Defense Reset Helper | window._resetGeoBlock() execution |
Passed | Cleanly clears session/local storage flags and reloads into standard workspace |
| Standard Global Access | UK / US connection simulation | Passed | Editor, canvas, and UI ribbons load completely unobstructed |
| Browser Runtime Stability | Console error listeners | Passed | 0 JavaScript errors or unhandled exceptions |
✅ Checklist Completed
- [x] Iran (IR) Geographic Access Control: Built sanctions compliance blocking for connections originating from Iran in
extensions/geo-defense.js. - [x] Iranian Tricolor Flag & Custom Card: Designed green/white/red tricolor flag with matching borders and dark navy card styling.
- [x] Bilingual Persian/English Notice: Authored legal sanctions compliance explanation and RTL Persian civil liberties notice.
- [x] Woman, Life, Freedom Solidarity: Incorporated
🕊️ زن، زندگی، آزادی / Woman, Life, Freedomfooter in vibrant emerald green. - [x] Timezone & Locale Heuristic: Added detection for
Asia/Tehran/Irantimezones and Persian language tags (fa,fa-IR,pes). - [x] Network Detection Redundancy: Connected Cloudflare trace (
loc=IR) andapi.country.isIP fallback routing. - [x] Testing & Simulation Tooling: Added
window._simulateIranGeoBlock(),window._simulateRussiaGeoBlock(), andwindow._resetGeoBlock(). - [x] Service Worker Update: Bumped cache name to
open-publisher-v5-3-1insw.jsand updated registration inpwa-install.js. - [x] Cachebuster Synchronization: Updated all 77 script and stylesheet cachebusters in
index.htmlto?v=5.3.1. - [x] Template Loader Modernization: Updated template fetchers in
templates.jsanddashboard.jsto?v=5.3.1. - [x] Automated Verification: Validated via Playwright test suite with verified screenshot artifacts and 0 console errors.
🎉 Version 5.3.1 - Open Publisher