For the past couple of weeks I’ve been working on a PHP system that uses the Google Safe Browsing API to download blacklists and perform lookups on them with the goal of limiting the destructiveness of phishing and malware websites. Its still in a very early development phase (alpha) and there is still a lot left to be done but… it works! I’ve started a Google Code project for this at: http://code.google.com/p/phpgsb/ Any contributions or testers would be greatly appreciated!
phpGSB Main Version – 0.1 (ALPHA)
phpGSB is a PHP implementation using the Google Safe Browsing API. At current it does allow the following:
- Updating of GSB lists to a MySQL database
- Basic checking of URL’s against lists and then full-hash checks against the full GSB database
- Caching of full-hash keys to minimise requests to the Google server
At current it does not allow the following:
- Requests using MAC keys (integrity checks)
The main class is definitely not as efficient as it could be and has developed very quickly to meet the basic GSB specification; any contributions, bug fixes etc are very welcome!
If you have any problems please post in the Issues section, give as much information as you can, the more information given, the easier it is to find any problems you may be having.
Modified Post 14/08/10 (Now caches full-hashes)