Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-03

[ot] Some(paid) work to do in FreePascal

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

John Sewell

Hi,
(Sorry if it's the wrong place to post that, please point my to any list best suited for that)
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 Thanks,
John

Reply by email