csrutil disable
$ reboot
Then run the following commands:
sudo /bin/sh -c 'echo "0.0.0.0 iprofiles.apple.com" >> /etc/hosts'
sudo /bin/sh -c 'echo "0.0.0.0 mdmenrollment.apple.com" >> /etc/hosts'
sudo /bin/sh -c 'echo "0.0.0.0 deviceenrollment.apple.com" >> /etc/hosts'
sudo /bin/sh -c 'echo "0.0.0.0 gdmf.apple.com" >> /etc/hosts'