A script to scan federal domains to identify sites running Drupal. This script uses data from this GSA repository. The script makes a curl
request to a website URL and looks for the X-Generator
response header to identify Drupal sites. (Note - this is not a bulletproof way of identifying Drupal sites, but it's common for Drupal sites to use this response header.)
Modify the default settings if needed. Invoke the script and direct output to a file, like so:
~$ ./scan.sh > site-generators.csv
- Analysis of federal .gov domains (external site)
- #10x-site-scanning channel in the TTS Slack 🔒