why not set a timer and disable wifi/network for the duration of the time you are setting aside to work without distraction. Or, maybe just close the tab/app with the distracting alerts? lots of way to achieve the same result without limiting yourself to such ancient hardware. Modern Macs have Do Not Disturb mode. I use this frequently