Last active
July 18, 2022 16:17
-
-
Save robertchrk/71b38aef0ab6b037303667c9b7b856f8 to your computer and use it in GitHub Desktop.
Block GitHub Copilot telemetry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Block GitHub Copilot telemetry | |
sudo echo "block drop from any to copilot-telemetry.githubusercontent.com" > /etc/pf.anchors/block_copilot_telemetry | |
sudo echo "block drop from any to 140.82.114.22" >> /etc/pf.anchors/block_copilot_telemetry | |
sudo echo "block drop from any to 140.82.114.21" >> /etc/pf.anchors/block_copilot_telemetry | |
sudo echo "anchor \"block_copilot_telemetry\"" >> /etc/pf.conf | |
sudo echo "load anchor \"block_copilot_telemetry\" from \"/etc/pf.anchors/block_copilot_telemetry\"" >> /etc/pf.conf | |
sudo echo "" >> /etc/pf.conf | |
sudo pfctl -evf /etc/pf.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment