I'm currently in the process of making a wordpress website that allows downloads of JPEG/PNG texture images. I'd like to implement a function that allows for only 20MB to be downloaded per 24 hours per IP address. If that limit is reached, the IP user should be sent to a page that tells them "You have reached your download quota. Please come back in X number of hours." I'm not sure if this should be server side through an Apache mod or if it's better to do from a PHP script. Right now, all the image files are placed in category sub folders that fall under one main folder marked "textures". The address will look like this: "[login to view URL]"
I would also like to link this script to a progress bar to show users how much they've downloaded for the day. I was thinking some kind of plugin like this would work: [login to view URL] ... but I'm open to other options. I attached a screenshot on where this progress bar should be displayed on the website. It should only appear on the pages where you can download the images.
Please send me a PM with what approach you would use to complete this task.
Thank you!