Hello
I share your concern
Looking at your description this might be related to hemorrhoids, fissure in anus or habit of having more spicy food.
If you can write back to me with more relevant information so that I will be able to guide you better
Your age and relevant medical history like
diabetes or
liver disease
Have you noticed bleeding in stool
Please follow these guidelines
You can apply anaesthetic ointment like lignocaine for immediate pain relief
You should avoid fried and spicy food, have
soft diet consisting of fresh fruit and fruit juices
you should also take anti acidity medicines like
pantoprazole or
ranitidine group of drugs with antacids for 3 to 4days
You should take laxatives or stool softeners with dietary fibers to facilitate smooth passage of stool.
Hope this helps you
please feel free to discuss further
Best wishes