Forum Moderators: martinibuster
If you are using server side includes (SSI), you could place the google code in an include file, say /includes/google.inc. Then you add the following code to each of your .shtml files where you want to use the google advertisments:
<!--#IF EXPR="$REMOTE_ADDR!=10.0.0.1" -->
<!--#INCLUDE VIRTUAL="/includes/google.inc" -->
<!--#ENDIF -->
You need to replace the IP address 10.0.0.1 with your own public IP address.
127.0.0.1 pagead2.googlesyndication.com Thanx for the idea Chndru and Ve3cnu, I didn't think of this option my self. You don't even need to change your site's source code to achieve the desired effect.
Drawback is, that you do not see the ads on other sites either...