There is not any guaranteed way To achieve this. You can use the .htaccess file (which also contains your permalink code) to check for specified IP addresses and stop them from viewing your website. In case you are a sophisticated person we suggest that you just tweak it In accordance https://www.hostscheap.com/setup-dmarc-google-workspace-service