Using google to search the source code of html pages

Bulldog13

Golden Member
Jul 18, 2002
1,655
1
81
Is there a way to use google to search the actual source code of webpages instead of the webpages themselves ? For example, I am re-doing a site for a client and some, but not all of the pages use <!--#include file="heading.asp" -->. Can I use google to search the source of the website for every webpage that includes that statement ?
 

MrChad

Lifer
Aug 22, 2001
13,507
3
81
No. Google's indexers only see the same HTML that your browser sees. Unless the web server is not configured correctly to execute the server-side code properly, the underlying ASP/JSP/PHP/etc. code should be hidden to the outside world.
 

Bulldog13

Golden Member
Jul 18, 2002
1,655
1
81
Originally posted by: MrChad
No. Google's indexers only see the same HTML that your browser sees. Unless the web server is not configured correctly to execute the server-side code properly, the underlying ASP/JSP/PHP/etc. code should be hidden to the outside world.

thx!