Don't spray, that will get it everywhere. Apply it directly to the algae at the base. The algae will turn white and die in a day or so.
Peroxide will also burn the coral; something tough like a zoa you can just dip directly into peroxide and it'll be fine, but I'd be careful with an acro so you don't kill the flesh around the algae and make the whole thing STN