To give people a sense of how such capabilities are likely to be used: https://en.wikipedia.org/wiki/DSMA-Notice:
In June 2013, a DA-Notice was issued asking the media to refrain from running stories on the US PRISM surveillance programme, and on British involvement therein.
In October 2013, Prime Minister David Cameron made a veiled threat to newspapers over NSA and GCHQ leaks, stating in Parliament that the government might use "injunctions or D-notices or the other tougher measures" to restrain publication of leaked classified information if newspapers did not voluntarily stop publishing them.