Sentry detector

Sentry logo

How can you detect if a website uses Sentry?

Detecting if a website uses Sentry involves searching for specific markers and scripts within the page source that are indicative of Sentry’s implementation.

Here’s a step-by-step guide on how to do it:

  1. Open the Page Source: Right-click on the webpage and select “View Page Source” or press Ctrl+U (Windows) or Cmd+Option+U (Mac) to open the page’s source code.
  2. Search for Sentry Scripts: Use Ctrl+F (Windows) or Cmd+F (Mac) to open the search function and look for the following keywords:
    • Sentry: Look for any `script` tags that might reference Sentry. For example, <script src="https://browser.sentry-cdn.com/.../bundle.min.js"></script>
    • dsn: Sentry configuration often includes a data source name (DSN). You might find lines like window.SENTRY_DSN or similar.
  3. Check JavaScript Console for Sentry Logs: Open the developer tools on your browser (usually F12) and navigate to the Console tab. Look for any logs that mention Sentry, such as error reports or initialization messages.
  4. Examine Network Requests: With the developer tools still open, navigate to the Network tab and filter for XHR requests. Look for requests that contain “sentry” in the URL as they will likely be error reports sent from the client-side to Sentry.
  5. Look for Sentry Initialization Code: Search the source code for Sentry’s initialization code. This often looks something like:Sentry.init({ dsn: 'YOUR_DSN_URL' });
  6. Check Error Handling Functions: Review any custom error handling functions implemented on the site. They may include calls to Sentry’s error logging methods, such as Sentry.captureException or Sentry.captureMessage.
  7. Search for Sentry-Specific Configuration: In some cases, Sentry can be configured with additional options. Look for snippets resembling environmentrelease, or other Sentry settings in the code.