What is the best way to block ocsp.apple.com on mac? There seems to be some bug where mac os is constantly contacting http://ocsp.apple.com. You can prevent it by turning off the wifi, but then your computer is nothing more than a fancy calculator. Is there a program, vpn, or even the firewall option, to block this site from the whole os?
A quick and easy solution is to use your system's hosts file to redirect requests to localhost.
sudo sh -c 'echo &quot;127.0.0.1  ocsp.apple.com&quot; &gt;&gt; /etc/hosts'

Then you'll want to make sure this has been applied by clearing the DNS cache - which on the latest version is done by forcing the DNS responder to restart:
sudo killall -HUP mDNSResponder