How to - find out if a website is running drupal

Tagged:

Pretty simple.

#!/usr/bin/env bash
 
wget -S $1 2>&1 | grep -q -m 1 "Expires: Sun, 19 Nov 1978 05:00:00 GMT" \
&& echo "Yes" || echo "No"

Save the script in a file called is-drupal, and make it executable (i.e. chmod +x is-drupal) and put it in a directory in your path (e.g. ~/local/bin/). Now, you can easily check a site with following command:

is-drupal www.federicopistono.org

Found here.

Trackback URL for this post:

http://www.federicopistono.org/trackback/197

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><div>
  • You may quote other posts using [quote] tags.
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <pre>. Beside the tag style "<foo>" it is also possible to use "[foo]".

More information about formatting options