Change your Hosting to a non US Company is what you can do.
Source: I implemented part of the sanctions compliance for a major tech company’s platform (and saw other projects get sunset because they didn’t implement it)
Btw, doesn't blocking by IP address go beyond what is required by law, since only Iranian residents are subject to sanctions? Would preemptively restricting accounts that have logged in from an Iranian IP address and asking for proof of residence break the law?
The penalties for violating sanctions are so severe that it is worth the risk of potentially blocking legitimate customers.
> Would preemptively restricting accounts that have logged in from an Iranian IP address and asking for proof of residence break the law?
It would be extremely expensive and in a literal sense not worth the time.
Also, this may come as a shock to you, but when a law is sufficiently unjust, there can come a time to disobey the law. In this case, disobeying the law would not directly risk anyone's safety, lowering the barrier somewhat.
Businesses don't care. It's easier for them to have a couple of false positives than it is to deal with the possible consequences.
- Not be a US company
- Not comply with US sanctions
- Not do business in the US
There’s options. Just because they don’t want to take them doesn’t mean they’re not there.