The move follows a Supreme Court order this month to ban online material considered blasphemous or objectionable in socially conservative Pakistan, where pornography is illegal and considered un-Islamic.
Major pornography website are already barred in Pakistan, though hundreds of thousands have fallen through the cracks of Internet censors.
"ISPs (Internet Service Providers) have been directed to block more than 400,000 websites having pornographic content," a senior government official told AFP.
Industry officials confirmed the move and said they have already started blocking sites but it could take some time to complete.
Other websites, including Facebook and YouTube, have previously been banned as part of a government-led censorship campaign, and authorities continue to restrict thousands of online links.
Last week, Pakistan lifted the years-long YouTube ban, in place since 2012 after the video sharing site uploaded the American-made film "Innocence of Muslims", which depicted the Prophet Mohammed as a thuggish deviant.
But the localised version of the video-sharing site may still be regulated by authorities who can ask Google to remove material deemed inappropriate.
In 2010, Pakistan shut down Facebook for nearly two weeks over its hosting of allegedly blasphemous pages.
Blasphemy is a contentious issue in Pakistan and the country has seen violent riots and public lynchings sparked by content considered offensive to Islam.
For the latest tech news and reviews, follow Gadgets 360 on X, Facebook, WhatsApp, Threads and Google News. For the latest videos on gadgets and tech, subscribe to our YouTube channel. If you want to know everything about top influencers, follow our in-house Who'sThat360 on Instagram and YouTube.