How do you react when he attacks- do you show fear and move away or stand your ground? What I do for attacking roosters:
Option 1-for frontal attacks, I wait and get ready for that little sucker. And when he gets to it, I grab him and push him to the ground. Then I hold him there and use my fingers to "peck" him in the head. Or even better, another chicken comes over and pecks the turd. He stays on the ground until he's calm and sometimes even after that. Completely humiliating, or at least it must be, I usually don't have to repeat. If the behavior does persist, see option 2....
Option 2-For unexpected attacks from behind/side/for sneaky boys, roosters that attack me from behind get a special neck tie to wear. Then they get to meat Mr. Hatchet for a neck massage, and then they get a nice, cushy stay at Camp Kenmore. I refuse to look over my shoulder, or have a rooster sneaky enough to come up behind me.
There are lots of nice roos out there, and nasty ones are easily replaced, in my opinion. Good luck.
I havn't tried the first option before but if it happens I should try that out

He hasn't really tried to attack me from behind only once which was today. I went back out ther and he was calmed down a LOT he only tried to run at me once and even then he didn't do anything crazy he stopped running at looked at me so i'm feeling a bit better about this but i'll see how it all is tomorrow