The company I work for (based in Germany) offers online courses.
The company would like to block users from non-EU/EEA countries (because of taxation complexity when we take payments from outside EU/EAA).
Regulation (EU) 2018/302 prohibits geo-blocking within the EU/EEA (so a German online trader cannot block a customer residing in Spain).
However, I have not been able to find information on whether it would be legal for an EU online trader to geo-block non-EU/EEA customers (from the United States, Russia etc).