Restricted-Country Access Control
Zero unauthorised access from restricted regions
Some countries are restricted for compliance reasons: OFAC-sanctioned countries, embargoed regions, jurisdictions with export-control implications, high-risk fraud regions. When employees travel to (or connect from) restricted countries, corporate systems shouldn't grant access without additional review. Manual geo-block enforcement is inconsistent; some systems check IP, some don't; access from restricted regions happens accidentally + creates compliance exposure.
An hour-by-hour walkthrough.
Step by step.
- 01
Detect access from restricted country
IP geolocation + user profile + travel booking cross-check. OFAC list + custom restricted-region list applied.
IP geolocation · OFAC list · Travel bookings - 02
Apply tiered restrictions
Not all-or-nothing. Regulated data blocked; general email + docs allowed with elevated logging.
Access control policies · Data classification - 03
Notify user + security via authenticated channel
SMS to verified phone (out-of-band). Prevents attacker-controlled channel from seeing the notification.
Twilio · Verified phone · Security notification - 04
Log incident for compliance record
Full timeline, access attempted, actions taken. Retained for regulatory response.
Audit log · Compliance retention - 05
Restore access on return
User returns to permitted region; access restrictions lift. Audit trail of restriction period preserved.
Access control · Audit log
What you connect to make this run.
IP geolocation · MaxMind · IPinfo
readCountry + region from IP. Multi-source verification to reduce false positive from VPN endpoints.
OFAC sanctions list · Custom restricted regions
readRegulatory + business-defined restricted regions. Kept current with sanctions updates.
Okta · Access control
read+writeSession control per region. Tiered access enforcement.
Twilio · Verified phone
writeOut-of-band notification. Prevents attacker-in-corporate-account from suppressing alerts.
Before and after, honestly.
Playbooks that pair with this one.
Answers about this playbook.
What if legitimate business travel to restricted region is planned?
Business-travel request path with legal + compliance review. Approved travel gets scoped access exception; export-control review as needed.
How does it handle VPN traffic that appears from unexpected region?
VPN detection + user's known VPN endpoints. Corporate VPN doesn't trigger; personal VPN from restricted region does.
What about employees who normally work from restricted regions?
Employment-location-appropriate policies. Employee based in region has access per employment; not restricted the same way.
How does it interact with export controls (ITAR, EAR)?
Export-controlled data has additional per-country restrictions. Access decision incorporates export-control classification.
What about accidental Cloudflare / CDN geolocation errors?
Multi-source verification reduces error. Single-source suspicious geolocation triggers user confirmation, not immediate block.
See it run on your data.
Free plan, no credit card. Connect the systems this playbook needs and run it against a past event first.