Cy Waits and Paris Hilton just outside the court when Cy Waits was about to be hit.
The moment Cy was hit on the neck from behind.
The man was caught by one of the bodyguards.
A man tried to hit Paris Hilton's boyfriend - Cy Waits on Wednesday as the couple were headed into the Los Angeles court house.
Paris Hilton had to testify against a man accused of an attempted to break in to her home.
The incident was witnessed outside the Superior Court building by an Associated Press photographer and quite a few reporters.
The man ended up hitting Cy Waits on the neck but was immediately caught by one of the bodyguards and taken away. He has been detained and an investigation is under way.
While Paris tweeted this, 'a psycho intruder just punched Cy in the back of the head as we were walking into the court house.'