Countries worldwide are taking precautions to prevent the swine flu outbreak from crossing their borders, the World Health Organization in Geneva said.