homepage Welcome to WebmasterWorld Guest from 54.242.200.172
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Home / Forums Index / Marketing and Biz Dev / Cloaking
Forum Library, Charter, Moderator: open

Cloaking Forum

    
Server Side Includes
Can they be only shown to certain users
webdev




msg:677681
 7:02 pm on Jan 31, 2005 (gmt 0)

I have a number of SSI's that I wish to show to certain users and bots, is there away to have certain SSI's included dependent upon the request coming in.

Thanks

 

volatilegx




msg:677682
 6:02 pm on Feb 1, 2005 (gmt 0)

Sure. If you have a list of the IP addresses of the visitors you want to show one thing to, use an SSI to call a CGI script which compares the IP address of the visitor against the list, then displays something based on the results of your test. You can do the same thing with the UserAgent string.

MrSpeed




msg:677683
 4:48 pm on Feb 23, 2005 (gmt 0)

Some langauges like ASP do not allow conditional includes like this.

if($spider){
<!--#include virtual="/spider.html"-->
}else{
<!--#include virtual="/person.html"-->
}

Maybe you can do that sort of thing in PHP or ColdFusion.
You can probably get around this by doing it all within your code. Test for the condition, read the file and just echo it out.

Also remember you can use Iframes to show content to people but not spiders.

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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved