Some people have pain in the neck and back of the head. An occipital nerve block is an injection of a numbing medicine. This procedure can help your health care provider diagnose the source of your pain. In many cases, it can also treat the pain.