Head banning

My 11 month old seems to bang his head on a lot of things on purpose. Sometimes I can tell out of frustration or boredom. Is that something anyone else has experienced and know of a solution?