GEO targeting php and hostip

by 6 replies
8
Hello

I am trying to show/geo target javascript affiliate links for certian countries that my visitors to my site are from.

I have doing a little research on google and have found a few script but for some reason they do not work.

I know about the geoip database from maxmind but I am looking for a remote solution as the geoip database is said to be a heavy strain on servers if you get a lot of visitors. I am hosted on a shared server so I do not want to get my account suspended for over working the server. Also I have a few sites that will use this idea.

This is a script I found whilst googling and all it does is give me an error.

This is the error it gives me:-

For some reason it will not show the javascript generated affiliate links it just throws that error up.

I am using the hostip service.

Any advice would be of great help.

Thanks in advance.
#programming #geo #hostip #php #targeting
  • Use maxmind's free javascript tool - much less messy. See MaxMind - MaxMind Javascript Web Service
    • [1] reply
    • A javascript option would be great but I do not know javascript.

      I would like to know please how would I use maxmind's free javascript option to show different ads for different countries.

      Example
      Display UK ad for uk visitors

      Display US ad for American visitors

      Display AU ads for australia visitors

      Any advice would be great.

      Thank you all in advance.
      • [1] reply

Next Topics on Trending Feed