Forum Moderators: open
I'm using a *simple* cgi script to redirect visitors based on IP address. I'm feeding visitors and SE's pages that live above my document root so I do not worry about spiders stumbling upon them and finding pages I don't want them to see.
Reading this forum I followed a few links off site and found some schmooze about SE's being able to tell that the page I'm feeding them is coming from a cgi script and as a result I can get penalized. The answer to this problem, of course, is to purchase Joe Schmo's superior product.
My question(s) is this. How much truth is there in this statement, and barring cgi, what would be the optimum method for super stealth cloaking?
Thanks much,
Jim
--
The script I use is basically this...
index.cgi is the "home" page.
Visitor comes in and index.cgi checks the IP address via HTTP_ADDR and compares it to a list of IP addresses associated with spiders.
if ($ENV{'REMOTE_ADDR'} =~ /$ipaddress/)
then, IP (address,spider) is set to true and an index.html page is read from a directory above the document root where no visitor has access to except my script since it's in my UID. The script then reads each line of the optimized index.html page and feeds it to the "visitor"/"spider" via
foreach $line (@lines)
{
print "$line";
}
Edited by: awoyo
My experience (several years of using discreet cloaking) is that most major SEs have concluded that cloaking is not a leading source of spam and are generally ignoring cloaked pages that are relevant to the human page you promoting.
Thanks again,
Jim
If ($ENV{'USER_AGENT'} =~ /^Mozilla/) {
Display human page;
}
Then begin checking your IPs.
It'll probably serve pages a little faster and offer less load to the server too since the majority of visits are non-spider hits and you'll avoid searching the IP list for every hit.
I do, however, see a potential problem. You are running the index page with the 'cgi' extension. That is likely to get you into some trouble. If you are on an apache server with mod_rewrite you could put 'AddHandler cgi-script .htm' in your .htaccess file to make it treat .htm's as cgi scripts. If you are on NT/2000 talk to your admin to see if he will change it for you. If that isn't an option, then you would be better off calling the script via ssi. Though .shtml may send up some flags, it probably is less obvious than .cgi.
Then again, there are many spiders, eg slurp, Ask Jeeves, and recently the FAST research and development spider that can come through with Mozilla user agents.
It's all a matter of nailing the sequence of how the spiders come through, or what marks visitors. For example, the HTTP_REFERRER variable is only from actual visitors, and never from spiders.
Good luck with this.
1. Start up Internet Service Manager
2. Select the web site you want to do the processing on
3. Right click on it and select Properties
4. Select Home Directory
5. If necessary, create an application
6. Press Configuration
7. Select .asp and press Edit
8. Copy down the information in the dialog
9. Press Cancel.
10. Press Add
11. Use the file extension .htm, use all the other information that you copied down in step 8
12. Press OK to all the dialogs
13. Restart IIS for good measure