It is lawful to use cones to deter off-road users from your driveway, but do not use them to restrict traffic on the road. Also, make sure the cones do not cause any problems for other road users.