Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: open
I'm trying to figure out how to do it right. I've read more hours than I want to admit and thought I would just ask for some good advice, like what scripts, how to do them, I haven't got a clue.
Thanks in advance. ; )
[edited by: DaveAtIFG at 10:58 pm (utc) on May 2, 2004]
What script you choose will depend in part on how/where you intend to use it. The ODP [dmoz.org] is a good starting point for comparison shopping.
I think the key to successful cloaking is keeping your IP list absolutely fresh. It should be quick and simple to update your list/script. Subscribing to or building an "up to the minute list" is an important part of all of this. Others may have different priorities.
As far as actual code goes I can explain again the logic of it, how to actually do it will depend on the language you choose.
The first thing for cloaking is to have a reason that you want to show someone different content than they are requesting. This also includes specific information based on who the user is.
The example used in the primer is language specific content based on browser language settings. You could also have country specific content which you would like to serve to users identifiable to a certain country of residence.
We need to figure out what information will identify these people as needing specific content. The two scenarios have similar testing params
1. for language you need to test the browser for a language setting and respond accordingly
2. you would need to get the ip and attribute it to a certain country
steps would be something like
1. You get the info you are testing for from the user
2. compare info with the options you have stored (db probably)
3. get content intende for this type of user or send default
4. serve the page
It isn't really tough but it all depends on what you are cloaking for. There are also other types of users you can target with specific content obviously but the general scenario remains the same.