How can you protect software?

In the European Union, computer programs are not patentable, but they can be registered in the General Intellectual Property Registry.