We require a script to be written, that can kill an apache request based on the filename that it is accessing, and based on it's connection status in Apache.
I will explain it in terms of how WHM shows it to me, and then you will have to simply cross reference the numbers and send a kill -9 command. I am a developer myself, but know absolutely nothing about Perl or Linux :)
Through WHM, you can view the "Current CPU Usage", Which I believe could be a print out of the TOP Command, but I am not sure. This shows the PID, The Username, Mem Status, CPU Stats, and the command they are running. The command if it is an apache request usually looks something along the lines of this
/usr/bin/php /home/username/public_html/[url removed, login to view]
The script will need to find basically every command that is currently running, that has a substring of whatever I tell it. Let's say I want to run the script to kill all instances of apache, that is accessing the script "[url removed, login to view]", then it will need to take something like
/usr/bin/php /home/username/public_html/folder/[url removed, login to view]
And be able to recognize the substring within that. From there, it needs to grab the PID.
If possible, I would then like to cross reference that with the Apache Status grab out. In WHM we have the Apache Status page which tells me all current running Apache processes. Inside here it gives me a couple more pieces of information, and that is the status of the connection (Whether it is running, Closed, Gracefully closing etc). It also tells me how long the process has been running for.
So in short :
Find an apache process by the file it is accessing, check it's apache status, and how long it has been running, if it meets my criteria (As in it has been running for over 2 minutes), then send a kill - 9 command and kill the request.
If you have any questions I am more than happy to answer them :)
P.S. Don't be afraid to bid because you think someone will undercut you. I want good work, not the most hurried code ever :)