homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
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

 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.




 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.


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

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

<!--#include virtual="/spider.html"-->
<!--#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.
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