youYou can use custom resolver
, to stop publishing/un-publishing of the items you want .
inIn custom resolver you can implement your business logic what to publish or not.
basically in, In custom resolver you can manage the resolved items against a published item.
you can find the more info here (Login Required)