Lens hood

A selection of lens hoods: one cylindrical, one conical and three petal ones (one of them is chopped).

In photography, a lens hood or lens shade is a device used on the front end of a lens to block the Sun or other light source(s) to prevent glare and lens flare. Lens hoods may also be used to protect the lens from scratches and the elements without having to put on a lens cover.
The geometry of a lens hood is dependent on three parameters: the focal length of the lens, the size of the front lens element and the dimensions of the image sensor or film in the camera.