Suggestion for Stopping Spam

There’s a bit of code for blocking user profile images suggested in this post: [OJS 3.x] Misuse of profile image may cause legal action - #8 by NateWr