taiko-mono icon indicating copy to clipboard operation
taiko-mono copied to clipboard

feat(taikoon): geoblocking

Open bearni95 opened this issue 9 months ago • 1 comments

Using Vercel's geolocation headers to ban the following countries:

const bannedCountries = [
  'AF', // Afghanistan (AF)
  'BY', // Belarus (BY)
  'MM', // Burma/Myanmar (MM)
  'CF', // Central African Republic (CF)
  'CN', // China (CN)
  'CU', // Cuba (CU)
  'CD', // Democratic Republic of the Congo (CD)
  'ET', // Ethiopia (ET)
  'IR', // Iran (IR)
  'IQ', // Iraq (IQ)
  'LB', // Lebanon (LB)
  'LY', // Libya (LY)
  'ML', // Mali (ML)
  'NI', // Nicaragua (NI)
  'KP', // North Korea (KP)
  'RU', // Russia (RU)
  'SO', // Somalia (SO)
  'SS', // South Sudan (SS)
  'SD', // Sudan (SD)
  'SY', // Syria (SY)
  'VE', // Venezuela (VE)
  'US', // United States (US)
]

bearni95 avatar May 15 '24 12:05 bearni95

feat(taikoon): geoblocking

Generated at commit: 7b155dfe4b4f70060e9341ffdfbc738e4ff196e2

🚨 Report Summary

Severity Level Results
Contracts Critical High Medium Low Note Total 2 2 0 6 41 51
Dependencies Critical High Medium Low Note Total 0 0 0 0 0 0

For more details view the full report in OpenZeppelin Code Inspector

openzeppelin-code[bot] avatar May 15 '24 12:05 openzeppelin-code[bot]