People who burst firecrackers during the Hindu festival this year will face up to six months in jail.