All right.
Apart from checking the legitimacy of the URL, I don't also know of any other security defense other than a visual check by the user.
I know there are some that go a step further and validate and alert the sign message in Web3, but to do this, the attack case needs to be templated/specified.