At first the flashing lights will work well but... if the fox comes around on a regular basis the fox will get used to the lights flashing at him and will think nothing of it anymore. It will just become a part of roaming in the area.
As you can't kill foxes, as it's illegal, I would consider a...