We had the same situation in our forums, of new members joining simply to create code-enabled profiles. We needed to set up a new member group that could not have a custom profile until they elevated to the member group.
It can be easy to find these spam profiles. They will be the ones with many, many views.
davidp