When people have problems with spirits, be it a haunting or whatnot, they are advised to bind the spirit. That is something I would not recommend at all for both beginners and for the first approach to the situation.
There are other, safer and simpler, approaches to a situation like this, let's discuss them.
Different approaches Contacting the spirit
This is the first step I would recommend anyone taking. Whether you want to bind a spirit because it is affecting you or because you think it is " fun " you should always try to contact it first.
When you are being affected by a spirit in a negative way, the spirit might just want something from you that you're not understanding. It might just want to warn you of something, it might just really need something from you or it might just be feeding off of your energy. In whatever case, contacting and trying to figure out the source of why he is there is the best way to go.
Now, if you want to bind a spirit for other reasons, I would suggest contacting it as well and see if it is open to the idea. I would not recommend, ever, you trying to bind a spirit against their own will. They will fight back if you make them angry and why would you even go against their will anyway?
Just like when a person affects you negatively, you want to know why. Do the same with spirits, ask them why or what do they want/need from you. Don't be disrespectful to a spirit.
Banishing the spirit
This is the third step I take in case I am being affected - negatively - by a spirit and it refuses to leave.
Youre the boss in this situation, you are a witch, you have the power to banish something out of your life that is making you miserable. Banishing a spirit sometimes is what's necessary. If you've tried it the easy way, tried contacting it and without any results, then banish it. Just like you wouldn't allow a person to keep bringing you down, why would you allow a spirit to do so?
There are many rituals that you can use to banish a spirit or you can always craft your own ( which would probably be best ). There are many different methods as to which you can go for.
I don't, at any point, recommend any of this to beginners. Study, learn, grow.. For future references
It happened once and you dealt with it, doesn't mean next time it will be that easy, spirits come and spirits go.
There are precautions that you can take, not only against spirits but malice in general, it is something I highly recommend anyone doing. If you can not protect yourself, then something's wrong.
Other protection spells or methods
There are many plain and easy methods to protect a property/person as well. Keeping pieces of silver on each corner of a room or a cup filled with water and salt are some of the easiest yet effective methods to protect and absorb negative energy.
You can also craft a spell of your own and place it upon a person/property, it is not an uncommon thing to do, let alone that hard.
Wards
Wards are a form of protection against malice/evil. They can be performed by a spell and placed upon a talisman, a sigil, etc, in order to protect someone from something. Some wards can be temporary and others more to the permanent side.
They can be placed on some structure as well ( if you want to go with the permanent ones ), however one must repeat the warding process for it to actually be more permanent-ish. Cleansing yourself and your home
Second step I recommend is cleansing. Getting rid of that negative energy is what you need as well, for one can't simply live in an environment filled with negative energy and feel good with it.
Cleansing is something we should do from time to time, as places and even ourselves, accumulate energy as time passes and some of that energy isn't always that positive. Cleansing is basically a reset button.
There are many ways that you can cleanse yourself and your home, be it with candles, prayers, incenses, herbs, etc.