Build lots of fortifications, build a corp that produces fortifications and contract production directly to your country. Then try to get a few hundred total forts. 300-600 or more depending on the size and value of your country and the risk you have of being attacked. This will discourage most players from attacking you as the amount of (clicking) required to defeat your country won't be worth it for most players.