President Obama has announced a new policy aimed at punishing countries like Syria and Iran that practice violence after gathering information about citizens online.