A nerve block for headaches (occipital nerve block) can provide temporary relief for certain types of headaches, such as occipital neuralgia and cluster headaches. It can also help with neck and head pain associated with injuries such as whiplash.