A tiny bruteforce protection function for Django