PHP Flood Protection Class