Forum Moderators: martinibuster
The ISP assigns dynamic IP addresses.
All have the same IP, but I have some times to see what ads appear.
Cookies are not reliable enough, also I would have to set them for all my domains.
So my solution was the post platform string of the user agent. I added after the "Alexa Toolbar" the birth date.
My SSI checks now for
if ( index ( $ENV { 'REQUEST_URI'},'.htm?as=no') > 0) { noad ( "REQUEST_URI with .htm?as=no") }
if ( index ( $ENV { 'HTTP_REFERER'},'.htm?as=no') > 0) { noad ( "HTTP_REFERER with .htm?as=no") }
if ( index ( $ENV { 'HTTP_USER_AGENT' },'Alexa Toolbar YYYYMMDD') > 0) { noad ( "my wife YYYYMMDD visits") }
if ( index ( $ENV { 'HTTP_USER_AGENT' },'Alexa Toolbar YYYYMMDD') > 0) { noad ( "my older doughter YYYYMMDD visits") }
YYYYMMDD stands for year month date
the sub "noad"
inserts an Amazon code instead of the AdSense code.
Otherwise, the page would look strange with the big empty spaces.
the sub "noad" sends me an email
The?as=no method is to have a save method to show web design clients my own page.
Imagine I create a web site about
"expensive industry widgets" for a client.
I show them their site and I mention, that I have also a web site about "expensive industry widgets"
They want to see them!
And when they see them, they see all their competitors
in the AdSense ads...
So I enter my-domain.com/expensive-industry-widgets/index.htm?as=no
And only Amazon ads appear.