If your home is the only home served by the driveway , if the driveway is not part of any kind of written easement , There should be no reason you cannot put up post and hang a chain or put up a gate that is locked in order to keep people out. I see this at the end of many long driveways along the roads I use on my way to work.