Get some scratch deterrent
One simple solution to keep pets away from doors is to spray them with scratch deterrent or another similar odour blocker (the door, not the pet). These are nifty little containers full of a product that when scratched or otherwise disturbed, releases an unpleasant odour.