Usi un file per ogni IP bloccato, no? Potresti usare il timestamp dei file per determinare quando è stato bloccato.