i think they should approve from backend only trusted servers allow . so they can get rid on issue like that
Electrum has been patched so that only "approved" error messages are now displayed, effectively mitigating this attack. However, it will only work for updated versions of Electrum. Anyone running older versions will still see the error messages.
It is impossible to have only "trusted" servers. That is centralisation, and that goes against the entire point of Bitcoin and decentralisation.
Also, if we only have "trusted" servers... and one gets hacked? There is no 100% foolproof solution to this problem. It just requires some care and responsibility on behalf of the user to protect themself. As has been said a LOT... you must ALWAYS check the digital signature of the Electrum installer/portable .exe before you install and/or execute it.
also we need to report fake repository of elctrum
I have reported the github repo. You can do the same thing here:
https://github.com/contact/report-content