Putting MySurfGuard to test
// November 26th, 2009 // programming
So I had to run ruby script to to assess how good MySurfGuard is (it’s basically a package of DansGuardian, Webmin and Squid). I had 5000++ over URLs in a text file supposed to be porn sites with a remark whether it is a porn site or not verified by human. I got it from Untangle website.They tested the scripts on some other apps so I’ve done some minor changes for DansGuardian (mysurfguard-test.rb).
- Install MySurGuard.
- I kinda cheated a little bit – took the updated blacklist from here and phraselist from here so MySurfGuard has the latest copy.
- Install ruby and lynx and wget (the script needs them) and as I was working on CentOS, so it’s
- Install lynx wget (the script requires them)
- Set configuration file for lynx to use proxy, put in your proxy address and port
- For wget to use proxy, do
- Run the script
$ yum install ruby ruby-devel lynx wget
#in /etc/lynx-site.fg PROTOCOL_proxy="http://localhost:8080/"
$ export http_proxy="http://localhost:8080"
$ ./mysurfguard-test.rb results-human.txt results-mysurfguard.txt
You’ll have the result in results-mysurfguard.txt


