The Ministry of Posts and Telecommunications announcement was posted this week at the country's main mobile service provider, Koryolink, and other places serving Internet users.
Very few North Koreans have Internet access. Typically they can see only a sealed-off, government-sanctioned intranet. But foreigners had previously been able to surf the Web with almost no overt restrictions, though most likely with behind-the-scenes monitoring of their Internet activities.
The new restrictions will make it more difficult for visitors or the small community of foreign residents in North Korea to post real-time information about the country to the outside world, and will further limit the ability of North Koreans with Internet access to view information about their country posted elsewhere.
It also said gambling and "sex and adult websites" have been blocked.
More From This Section
Facebook and Twitter had been informally blocked for months and could not be accessed Friday in a Web search from Pyongyang.
The announcement added that anyone who tries to hack onto such sites, access them in an "improper" way or distribute "anti-republic data" from them will be subject to punishment under North Korean law. It did not say what the punishment would be.
They also mirror some restrictions in South Korea, which, despite being one of the world's most Internet-crazy countries, also bans North Korean websites and a wide variety of what the government deems to be adult content.
It is estimated that more than 2 million North Koreans now use mobile phones, but with few exceptions access to the Internet is limited to officials, technicians or others who have special permission to use it, usually under close supervision.