Recent

Author Topic: A little job in FPC/Lazarus  (Read 7174 times)

johnsewell

  • Newbie
  • Posts: 2
A little job in FPC/Lazarus
« on: March 03, 2012, 07:47:53 pm »
Hi,
I would like the following tool, coded in FPC for Linux 64, in command line.
The usage is a proxy log scanner to automatically block "bad websites" from our proxy. I know there is ton os list, tools, etc for that but we want to block as little website as possible
The binary is launched with a file as parameter 1, containing a list of URL to check (loadable by TStringList) and then will perform the following checks for each website of the list (eah check will return a score) :
-whois search (There is a whois component with Indy, or you can parse the result of the whois command line) that returns domain creation, modification and expiration date, the owner and the registry (such as 1&1, godaddy, etc)
-Check if the domains is listed on Google's SafeBrowse API. The check must be local, redownloading the source file if they are older than 30mn ( http://code.google.com/intl/fr/apis/safebrowsing/developers_guide_v2.html )
-Count the number of links on the webpage, then use Adblock's list to count the hits (the idea is to get the % of ads in the webpage), the regexp tool of FPC should work
-Perform a check on a DNSBL ( http://www.spamhaus.org/dbl/ )
If you are interested please contact me with a price proposal on johnhsewell (at)  gmail.com
Thanks for your interest,
John

 

TinyPortal © 2005-2018