How-to automatically discover your site has been hacked using Google Alerts

Written by: The Tutor on Thursday, June 26th, 2008
Posted to: Alerts, Security
One comment, add yours!

Having your site hacked is really common these days and it is growing all the time since it is so easy to do and the payoffs for unscrupulous webmasters can be big… especially when the hack is never discovered.

But how do you know if you’ve been hacked without following the web security industry constantly?  How about getting regular emails from Google Alerts?

My friend Patrick at BlogStorm covers a great way to be informed if your site falls prey to a hacker

To get started we need to think of a few likely spam terms that people might like to inject in our site and then use them to make up a search query:

viagra OR cialis OR levitra OR Phentermine OR Xanax site:blogstorm.co.uk

Next simply go to Google Alerts and enter the query above into the “Create a Google Alert” box and you will get an email whenever Google spots one of your chosen spam words on your site.

The one thing he doesn’t call out that well is that you should make you list of ‘OR’ spam terms longer to catch more suspects, I’d suggest thinking dirty here and about loans, or you could check your email spam folder in for ideas as well.

This method certainly won’t discover all hacks, but it is a very easy way to find out about one of the more common site hacks automatically!

Don't miss another post! Subscribe by RSS feed or by email today!

Share this post!   One comment so far, add yours!

One Response to “How-to automatically discover your site has been hacked using Google Alerts”

  1. ejeson 31 Jul 2008 at 8:35 am

    This only works if your web site is defaced.

    There is no 100% sure way to know if your site has been hacked; and since most hacks now a days are cross site scripting, sql injection, or iframe injection based – it’s less likely that this google alerts tip will work for those.

    otherwise you can easily detect if your site has been defaced, or otherwise spamed by this tip.