Fetch as Google with curl

A hacked web site got hacked. The site listed on google SERP with text “There are essentially two prescribed drugs which viagra 200mg”.

Hacked site on google SERP

When you visit the site in browser and heck the source, you see everything normal, no text related to viagra. This is because malware on site only show that content to google bot.

To see the malware inserted text, you can use Fetch as Google tool in your Google webmaster center. But before using the fetch as google, tool, you need to verify ownership of the site.

Another way is to change your browsers user agent to same as Google bot

You can see list of user agents used by google at


To Fetch as site as google using curl, run

See curl

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *