title: Salesforce data loss prevention - can I embed JS on standard salesforce pages?
body: <p>I'm looking into possible ways to control and monitor data leaving our Salesforce Org.  Currently solutions appear to fall into two broad categories:</p>
  
  <ol>
  <li><p>Lock down features for users using profiles.  E.g. Prevent certain kinds of users from having reporting, or exporting rights</p></li>
  <li><p>Have third party monitoring software installed on work machine which monitor and control interactions with salesforce.com</p></li>
  </ol>
  
  <p>Neither of these suits our requirements.  Our problem is with users who need to be able to run and extract reports but doing so from some internet cafe.  We also can't restrict them to work machines as a lot of them are travelling salespeople.</p>
  
  <p>Furthermore, salesforce have said they don't provide any kind of report on what reports have been run, or what data exported.</p>
  
  <p>I'm investigating the third possibility which is bolt some sort of monitoring JS code onto salesforce.com itself.  If possible, I'd like to embed JS on the salesforce Report tab (and any other page where data can be exported) and intercept clicks to the "Run Report" or "Export" buttons.  I'd call a logging web service with the user's name, the report parameters, time etc.</p>
  
  <p>Does anyone know if it's possible to embed custom JS on salesforce pages?  Or any neater solution to the above?</p>
  
  <p>Thanks for your help</p>
  
  <p>Ray</p>