Use BETWEEN to select date ranges in SQL database
Blacklist IPs daily instead of montly