It is a similar system as the US has for foreign travellers. They call it ESTA. It is simple, answer some online questions and for a fee you have the visa. Only when answers to questions are false or needing further information, you will be directed to an embassy or consulate for further investigation.
For instance on the US questionair, if you answer yes to, "have you ever been convicted of a crime". No visa is issued.