What is the best way to block ocsp.apple.com on mac?
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