Centinel AnalyticaCentinel Analytica

Drupal 7

Add Centinel Analytica to your Drupal 7 website.

Overview

This guide covers installing, configuring, and verifying Centinel Analytica in Drupal 7. You'll upload a .TAR.GZ module, enter your keys, choose what to protect (front-end, API), and create a block page.

Get your keys first

Go to the Dashboard and copy your Site Key and Secret Key.

Prerequisites

  • Drupal 7
  • Administrator access
  • Ability to upload and configure modules

Install

Download the module (.TAR.GZ)

Download Drupal 7 Module. Keep the file compressed—don't decompress it.

Upload and activate the module
  1. Log in as administrator.
  2. Go to Modules in the main menu.
  3. Click Install new module.

Install new module Select module file

  1. Once installation completes, go to Configuration → Security → Centinel Analytica Settings (/admin/config/security/centinel-analytica). The administer centinel analytica permission is required, so grant it at /admin/people/permissions if the page is not visible.

Centinel Analytica Settings

  1. Enter your API keys from the Dashboard.

API Keys

  • Site Key – paste from your dashboard. The module injects the browser script when this is set.
  • Secret Key – paste from your dashboard. Leave it empty and protection is disabled.
  • Block Page URL – where users go when blocked (default: /block).
  • Apply protection to – check Front-end pages.
  • Excluded paths – one glob per line, matched case-insensitively. Ships with 13 static-asset patterns.

Click Save Changes.

Only front-end protection is enforced on Drupal 7

The JSON:API / REST checkbox is a placeholder for forward compatibility. Drupal 7 has no API-request detection, and the module returns early unless Front-end pages is checked. Do not rely on it to protect an API.

Requests under /admin and the block page itself are always skipped.

Create the block page

A block decision with no page from the validator redirects to your block page. If that path does not exist, blocked visitors land on a Drupal 404.

Drupal 7 does not pass validator response headers through, and it ignores the validator's status_code: a redirect is always delivered as a 403. To confirm the module is live, view source for id="ca-collector" and check Reports → Recent log messages for centinel_analytica entries.

Verify installation

In Centinel Analytica → Analytics you should see traffic appearing as you browse your site.

Configure

All settings live on the module's settings page at /admin/config/security/centinel-analytica.

SettingNotes
Site KeyEnables the collector script injection.
Secret KeyRequired. Empty means protection is off.
Block Page URLMust exist as a node, or blocked visitors see a 404.
Apply protection toOnly Front-end pages is enforced on Drupal 7.
Excluded pathsOne glob per line, case-insensitive.

The module hooks hook_init, so it runs on every page request. Requests under /admin and the block page are always skipped, and the validator call fails open.

Verify

View the page source of a public page and look for id="ca-collector", which confirms the script injection is active. Then check Reports → Recent log messages and filter on centinel_analytica: validator errors appear there as warnings.

Changelog

  • v1.2 — Drupal middleware improvements
  • v1.1 — Exclude paths option
  • v1.0 — Initial release

On this page