title: Run an Ajax request on a URL blocked for detecting Adblocker (Ghostery)
body: <p>I need some simple code for detecting a blocked url.</p>
  
  <p><a href="https://stackoverflow.com/users/3803371/sethwhite">SethWhite</a> has said: <code>You could also try to run an ajax request on a URL blocked by an adblocker. If it succeeds, there's no adblocker, if it fails, there's an adblocker.</code></p>
  
  <p>I can use <a href="https://code.google.com/p/microajax/" rel="nofollow noreferrer">microajax</a> to do this in the following way:</p>
  
  <pre><code>microAjax("/resource/url", function (res) {
    alert (res);
  });
  </code></pre>
  
  <p>How I can call <code>window.open</code> if the request does not succeed?</p>