Preventing malicious linking

Hi,
I will be building a plugin for preventing malicious linking. I would like to do it in two phases.

Phase 1 :

  • Query each link in google safe browsing API for the first time and if it is a malicious link, store the details in the plugin store.
  • When the user clicks the same link after the first time, the plugin will know that the link is malicious by querying the plugin store.

Phase 2 :

  • I will implement a way to cache the results from google API .
  • Cache will be expired after a given time period.