another quick fix is to remove one or more hinge pins and lay them on something solid and give it a rap with a hammer putting a slight bend in them. it makes an interferance fit and sometimes works if door isn't too heavy(solid)
If they swing on their own, the jam is probably out of plumb or square. Check and adjust there first to do it properly. Shimming at the hinges is seldom anything more than a temporary fix and it looks bad unless you go to great pains to conceal your jury rigging. Time that could have been invested in repairing the jam.
A forum community dedicated to professional woodworkers and enthusiasts. Come join the discussion about shop safety, wood, carpentry, lumber, finishing, tools, machinery, woodworking related topics, styles, scales, reviews, accessories, classifieds, and more!