Answer
The hair and nails may be wrapped in a piece of paper or cloth and disposed off at a place that is free of impurities. It is also better and advisable that the hair be cut into small pieces before disposal. (Fataawa Mahmoodiyyah vol.9 pg.402; Mazhari).
and Allah Ta’ala Knows Best
Mufti Ebrahim Desai