just wondering i have a couple of proxy scripts i use on some hosting for personal use (yea and everyone who seems to find aout about them...)

but i would like to first know how to go about writing my own script and also have it replace google ad ids on the pages displayed to mine?

is this possible?