basic dir protection