Ventura docs for M2 Macs in this comment: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4555340#gistcomment-4555340
Old Monterey docs in this old revision: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd/32c410e3a1de73539c76fa13ea5486569c4e0c5d
Solution for Sonoma: https://gist.github.com/sghiassy/a3927405cf4ffe81242f4ecb01c382ac
This is what I did..
open terminal app (on my Ventura M2 Max) this is found in Applications/Utilities
Then type
sudo nano /etc/hosts
enter your password
then add the following entries ensure they aren’t hashed out # aka there is nothing in front of the 0
0.0.0.0 mdmenrollment.apple.com
0.0.0.0 iprofiles.apple.com
0.0.0.0 deviceenrollment.apple.com
once added hit control x to save and exit type Y to accept changes.
To be even more safe I use a Linksys Velop router so I went into Parental controls and on the MacBook Pro Device selected I also blocked the 3 specific sites above. This should stop that device from accessing those sites ever…
I went into settings and upgraded to Sonoma as per usual.
it rebooted, I logged in as normal
Opened terminal and used the same command sudo nano /etc/hosts
And my entires were still there, no alerts or notifications.
All working.