homepage Welcome to WebmasterWorld Guest from 54.166.173.147
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Marketing and Biz Dev / Cloaking
Forum Library, Charter, Moderator: open

Cloaking Forum

    
Need advice on writing my own cloaking script
What language and database vs flat file
kovacs




msg:678068
 2:29 am on Dec 15, 2003 (gmt 0)

I am working on my writing my own cloaking script and am trying to work out the best way to do it with the limited skills I have. Basically, I was planning to use the Fantomaster spider list for IPs, and use a short inline PHP cloaking script included before the opening <html> tag of every page of my shadow domains. The script would check the list of spider IPs and either redirect to my main sales domain if it is an ordinary surfer, or serve up the spider food page as normal if the visitor is a spider.

Is this an efficient way of cloaking? I have been wondering, since the Fantomaster list looks to be quite large, if there would be any advantage in parsing the IP list from a MySQL database as opposed to a flat text file, which was my original plan. Apart from doing some basic tutorials, I currently know very little about databases, but am sure that I can learn enough to be able to use MySQL if there was going to be a definite speed advantage to doing so.

Also, is PHP even the right language to be using? I notice that a lot of the commercially available cloaking scripts are written in Perl - what is the reason for that, and is PHP a realistic alternative?

The other thing that occured to me was to just use mod_rewrite and .htaccess in every domain with the spider IPs - is that a viable (or better) alternative to a separate cloaking script, and will it be faster or slower?

Any advice or suggestions would be much appreciated. :)

 

volatilegx




msg:678069
 7:54 pm on Dec 17, 2003 (gmt 0)

PHP is a great language for both cloaking and for accessing MySQL databases. A MySQL database would be better than a flatfile for accessing search engine IP addresses.

My personal opinion about Perl and cloaking is that the codebase for most the the commercial cloaking scripts was written before PHP became popular, and just haven't been ported to PHP.

The other thing that occured to me was to just use mod_rewrite and .htaccess in every domain with the spider IPs - is that a viable (or better) alternative to a separate cloaking script, and will it be faster or slower?

This would work for a very simple cloaking script, but the Fantomaster's IP list is pretty long and running through such a long list of IPs for every page access would use a lot of server resources. A MySQL query would be more efficient.

Dan

kovacs




msg:678070
 4:48 am on Dec 18, 2003 (gmt 0)

Thanks very much for your answer, just what I was hoping for. PHP + MySQL it is. :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Marketing and Biz Dev / Cloaking
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved