If a spelli is cast against you, it will go into the bottle instead of yourself. Careful though, good spells as well as bad may be redirected.
You will need
A jar with a tightly sealing lid
Sharp pointy objects- nails, thorns, razors, etc.
Your DNA- Hair, spit, blood, urine, nail clippings, whatever you like, the more the merrier (You can make a bottle for more than one person or a whole household, just add their stuff too.)
Put all the stuff in the bottle and seal it visualizing all evil intentions veering away from you and going into the bottle. Bury the bottle near your front door.
Word of warning- Although can’t vouch for the truth behind it, I once heard the story of a witch who kept her bottle in a closet by her door because she lived in an apartment and one day it exploded and it was very nasty to clean up. Whether it exploded because of negative energy it absorbed or because of the gases released from the decaying body fluids contained within, I can't say. Either way, it was still gross and could have hurt someone. If you don't have a yard to bury it in, try burying it in a large potted plant.