Skip to content

Instantly share code, notes, and snippets.

@robertchrk
Last active July 18, 2022 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertchrk/71b38aef0ab6b037303667c9b7b856f8 to your computer and use it in GitHub Desktop.
Save robertchrk/71b38aef0ab6b037303667c9b7b856f8 to your computer and use it in GitHub Desktop.
Block GitHub Copilot telemetry
#!/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