Wired has an article about how it’s legal to give police the finger but it’s not a good idea.
Hell, I can show you that in one short video and save you five minutes:
Yes, some cops are dicks. They don’t hand out reason and common sense with guns & badges. However, there are better ways to show your displeasure than setting yourself up for a hassle or getting your ass kicked.