Hi,
a clean project description, thanks and about the project, yes these tasks can be done within 2 days.
IP's of users can be recorded and using the specific ip as a filter, you can do many actions like you have mentioned.
I see that you need to block certain refers too, sure thing, we can get this done within 2 days.
Also make sure you hire a person who is concerned about the security aspect of these modifications, i being a security professional for last 5 years have encountered many issues related to security in these types of environments.
This is a complicated task, this is sensitive as well, make sure you hire a freelancer who understands the depth of the modifications you are trying to archive.
if i'am chosed to complete this project, i will give you vulnerability assessments on the current script and hopefully fix them along with my modifications :-)
Thank you.