As Scrounge says cut the heat back as soon as foaming starts, then you should be able to increase again later. If your heat is way too high it can still foam even towards the end of the run when the protein issue should be well gone.
I have a lot more foaming problem with 100% malted barley wash than my rye, least problem is with apple and grape wine.
For anti-foam I use pure soap, about 2 grams per 100 litres