Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
When accidental or fraudulent mirrors are found get: a message in front of admin's faces, watchdog entries, and a report of domains. This is just an awareness tool.
How it works
This module has two modes which will depend on if you've set $base_url in your sites/default/settings.php file...
#1) WITHOUT hard coded $base_url
Page URLs are stored with page cache entries, this module creates a report of non-base domains in the cache and rolls them up by with a count by domain. It assumes the domain you are accessing from is your base. Additionally, on each cron run a watchdog note will be made if any are detected, this is for trigger an alert if you desire. NOTE: Full results only stick around as long as your page cache. Watchdog messages will stick around in accordance with your row count setting. Though if you're getting consistant mirror hits you'll be able to see it.
Note that there have been several issues getting this distribution to work. Once it appears to be working as expected, there will be a beta release.
Overview
This distribution will set up a very simple example Drupal 7 website that includes:
Common contrib modules (e.g. Views, Pathauto, etc.)
Multilingual modules used in book (see note below)
A main menu and a footer menu
Left and right side blocks
Extra content types
Pages created with Views
Taxonomy terms
Sample content (nodes)
Dummy user accounts
Example custom module code (for chapter 5)
Installation process
Be prepared to wait. This installation uses many modules to set up the site and you will be waiting many minutes while it does it work. Surf the web, read a book, play a game ;)