Webmin users: Have you started using the <Webmin><Others><Custom Commands>? If not, maybe I can help get you jump-started.
I've attached a custom command file that will allow you to search your porn and ads blacklists (porn and ads are my two most active destination groups). Here's how it will work after you've set it up - On the <Webmin><Other><Custom commands> page, enter your search term and click the <Search porn/ads blacklist entries> button right above the search field. Here's the result of a search on my system for "cnet.com": ------------------------porn domains eroticnet.com jfa.nutecnet.com.br maleeroticnet.com search.cnet.com sexpicnet.com ------------------------porn urls aracnet.com/~genxinc aracnet.com/~visionq/freepics aracnet.com/~wesley-s awcnet.com/alluring-fantasies club.idecnet.com/~erobles/100sexguia/imagenes ------------------------porn *.diff ------------------------ads domains ------------------------ads urls ------------------------ads *.diff +remotead.cnet.com This thing gets a lot of use over here; I hope you find it useful. Assumptions ----------- #> You have a recent version of Webmin (.9+) installed and working. #> Your porn and ads blacklist files are located here: /usr/local/squidGuard/db/block/blacklists/porn/domains /usr/local/squidGuard/db/block/blacklists/porn/urls /usr/local/squidGuard/db/block/blacklists/porn/domains.diff /usr/local/squidGuard/db/block/blacklists/porn/urls.diff /usr/local/squidGuard/db/block/blacklists/ads/domains /usr/local/squidGuard/db/block/blacklists/ads/urls /usr/local/squidGuard/db/block/blacklists/ads/domains.diff /usr/local/squidGuard/db/block/blacklists/ads/urls.diff #> Your Webmin installation has already created a /etc/webmin/custom directory. Installation - Method 1 ----------------------- #> Save the attached file <1000000000.cmd.gz> into your /etc/webmin/custom directory. #> Run "gunzip 1000000000.cmd.gz" #> Run "chown root.root /etc/webmin/custom/1000000000.cmd" #> That's it. Start Webmin, select <Other><Custom Commands> to use your new command. Installation - Method 2 ----------------------- #> Start Webmin, select <Other><Custom Commands> and click on <Create a new custom command>. #> For <Description>, enter "Search porn/ads blacklist entries" #> For <Command>, enter "echo "------------------------porn domains"; cat /usr/local/squidGuard/db/block/blacklists/porn/domains | grep $searchfor; echo "------------------------porn urls"; cat /usr/local/squidGuard/db/block/blacklists/porn/urls | grep $searchfor; echo "-----------------------porn *.diff"; cat /usr/local/squidGuard/db/block/blacklists/porn/domains.diff /usr/local/squidGuard/db/block/blacklists/porn/urls.diff | grep $searchfor; echo "------------------------ads domains"; cat /usr/local/squidGuard/db/block/blacklists/ads/domains | grep $searchfor; echo "------------------------ads urls"; cat /usr/local/squidGuard/db/block/blacklists/ads/urls | grep $searchfor; echo "------------------------ads *.diff"; cat /usr/local/squidGuard/db/block/blacklists/ads/domains.diff /usr/local/squidGuard/db/block/blacklists/ads/urls.diff | grep $searchfor" (This is also the first line in the attached file; you might want to copy it from there to eliminate the wordwrap problem. Or just use Installation Method 1.) #> For <Run as user>, enter "root" and check <Use user's environment>. #> For <Command outputs HTML?>, click <No>. #> Under Command parameters: #> For <Name>, enter "searchfor" #> For <Description>, enter "Search for" #> For <Type>, select <Text> #> Leave the next field blank. #> For <Quote parameter?>, click <No>. #> Click <Save> #> That's it. In Webmin, select <Other><Custom Commands> to use your new command. Let me know if you have any questions. Rick
1000000000.cmd.gz
Description: Macintosh archive
