Skip to content

Instantly share code, notes, and snippets.

@octplane
Last active December 18, 2015 19:09
Show Gist options
  • Save octplane/5830467 to your computer and use it in GitHub Desktop.
Save octplane/5830467 to your computer and use it in GitHub Desktop.
Expand list of ipv4 hosts for all the source of the facebook crawler into a set of nginx Allow directives
whois -h whois.radb.net -- '-i origin AS32934' | grep ^route: | sed -e "s/route: /allow/;s/$/;/"
# https://dev.twitter.com/discussions/6545
whois -h whois.radb.net -- '-i origin AS13414' | grep ^route | sed -e "s/route: /allow/;s/$/;/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment