Denyaddandcustomizepages sharepoint online pnp. Go to the SharePoint admin centre.