This was a fun project. I wanted to be able to be able to manage my cod4 game server without all the rcon commands. Also, my friends should be able to restart the server or add bots even if I am not playing. Lastly, I didn’t want to give up security of my server to let them do so (e.g. they can’t start the server with an rcon command, that required logging into the server via remote desktop or using some other method requiring admin privleges).
What I ended up with was a web page that can connect to a cod4 server via its UDP port and run rcon commands. It works pretty good. It uses the same method that other scripts on the web use. I wrote it using C# .net 3.5 with ajax and I think it came out pretty good.
There are some limitations. The player list doesn’t parse perfectly (UDP packets come in out of order) and there are lots of things to add. But as a tool, it is quite usable and works well. I am releasing it for free, so help yourself and best of luck to you. Instructions are on the linked page.