How to use Google’s cache to restore a web page

In the event that you need a file restored and you have no local backup or the InMotion Hosting backup isn’t usable for any reason, you may be able to use Google’s cache as an alternative.

When Google crawls your website, it takes a snapshot of your page. That snapshot shows what your site looked like when Google crawled it, and is available to see using the “Cached” link in Google’s search results. Restoring a page using Google’s cache, in short, is using the html Google saved when crawling your site to rebuild the file you need restored.

Please note:
The steps outlined below are not guaranteed to work. This method is only recommended to be used as a last resort. Google’s cache will not work on php or other pages using server side scripting as Google cannot see your php code, only the html that is generated.
  1.  Search Google for site:example.com. Be sure to replace example.com with your domain name and do not insert any spaces between site: and example.com.
  2.  You will see a listing of all pages that Google has crawled that are in example.com. Click theCached link next to the page you need to restore.
  3.  At the top of the page, Google will display a message similar to:
  4. This is Google’s cache of http://www.example.com/. It is a snapshot of the page as it appeared on Dec 14, 2009 22:29:21 GMT.

    The snapshot date listed is the date that Google crawled your site. If your page shows correctly below this message, then you should be able to use the html code in Google’s cache to attempt to restore the file.

    View the source code of the page. In most browser’s, you can right-click and choose View Page Source. The source code is the html code that is used to render your website. Select all the code in the page source and copy/paste it into a test file in your account. For example, if you are trying to restore index.html, place the code in a file named index_test.html. Google adds a few lines to the top of the page, so you’ll want to remove the first few lines of code at the top. Those first few lines is what Google uses to display the information at the top of the cached page, for example, the snapshot date.

  5.  Test the new file in your browser. In this example, you would want to test example.com/index_test.html. If this version of your page in Google’s cache will work for you, move the original file out of the way and instead put the test file in place. In this example, you would rename index.html to anything else, like index.html.bak, and then rename the test file index_test.html to index.html.

Thoughts on “How to use Google’s cache to restore a web page

  • hi
    resently i have changed my web and loaded new files.i removed last web.but when enter my adressbar Google show last web by this massege:
    This is Google’s cache of http://milad2000.ir/. It is a snapshot of the page as it appeared on 4 Aug 2018 08:44:45 GMT. The current page could have changed in the meantime

  • After i met this problem, i can’t connect my ftp, help!! what is the meaning of ‘Select all the code in the page source and copy/paste it into a test file in your account.’???

    • Hello Angel,

      That statement means to View the source of the page, then paste it into an empty file you have created within your public_html folder for testing. As for your FTP, if you are certain your username and password are correct, please contact our Live Support team for further assistance.

      Kindest Regards,
      Scott M

Leave a Reply