You need to find good advice, a lawyer to protect your ass.
The problem is in finding a good one, nobody here ever recommended me a decent one.
It is hard to avoid tax now though. If you control a company in Cyprus but you live in the UK or anywhere else then the second country will still tax you because its obviously a ruse.
There is something called "anti-avoidance legislation". Basically, if it looks like a duck and quacks like one then it is one.
The alternative is to hide what you do. Again, this is difficult today because you have to show a passport to open any bank account. You might think "how will they find out"? Well, banks employees are going rogue all the time and selling data to tax authorities.
I've always done it the legal way but Europe is full of bureaucracy its ridiculous. Its not even worth my being self employed in many countries. At least the UK tax system is easy to navigate I will say that much, there is no bureaucracy at all.
But yeah if you want to benefit from a country's tax laws you need to live there. Anything else and you are evading tax, despite what some of those selling solutions may say.
I remember some IT contractors who paid no tax by an arrangement where their money was received as a "loan" from companies in the Isle of Man. Except the loan never had to be repaid!
Sounds great right? Wrong! One of these companies decided to sell up and the company that bought it decided to call in all the loans! Do you think the UK government gave a sh1t to all the wailing tax evaders? Of course not!
Your better bet is moving to Asia. Many marketers go to Thailand. They don't even bother declaring taxes. The more "third world" a country, the more likely you will get away with it because these countries just aren't up to scratch in terms of monitoring and vigilance.