To schedule tasks you will need to use crontab functionality, which is configurable via command line.
For detailed description and instructions on how to set up crontabs, please refer to this page.
The crontabs should look like this:
You can configure a traffic rule in the firewall settings to drop packets originating from specified IP addresses for a defined period.
Please refer to this page to see if the feature is sufficient for your application.