Skip to content

Instantly share code, notes, and snippets.

@Tawmu
Created October 16, 2014 22:08
Show Gist options
  • Save Tawmu/b021c379ff5fdb283d60 to your computer and use it in GitHub Desktop.
Save Tawmu/b021c379ff5fdb283d60 to your computer and use it in GitHub Desktop.
Generates necessary format for squidGuard blacklists from "badones" category list
#!/usr/bin/python
badones = ["ads","adult","chat","dating","desktopsillies","dialers","drugs","filehosting","gambling","guns","hacking","instantmessaging","kidstimewasting","mixed_adult","onlinegames","phishing","porn","proxy","ringtones","spyware","violence","virusinfected","warez","weapons"]
i=0
while i < len(badones):
print "dest "+badones[i]+" {"
print "\tdomainlist "+badones[i]+"/domains"
print "\turllist "+badones[i]+"/urls"
print "}"
i += 1
@Tawmu
Copy link
Author

Tawmu commented Oct 16, 2014

Quick and dirty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment