homepage Welcome to WebmasterWorld Guest from 54.227.34.0
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
need to add more "user_agents"
serving user agent specific content
iggy99

10+ Year Member



 
Msg#: 403 posted 7:37 pm on Apr 20, 2002 (gmt 0)

hello everybody -

i have a simple php snippet working in my header file - we would like to add more than one user agent to the line tnat contains "googlebot" - i do not know what punctuation marks i need to add more sgents ---

any suggestions would be great!!

<?php
if (!(strpos($HTTP_USER_AGENT,'GOOGLEBOT') ===
false)) {
echo("
<TITLE>GOOGLEBOT -Welcome to Aloha Bouquets Web
Site</TITLE>
<meta name=\"Description\" content=\"googlebot A
full description of site goes here.\">
<meta name=\"KEYWORDS\" content=\"googlebot
Important phrase or keyword, another one\">
");

} else {
echo("
<TITLE>Welcome to Aloha Bouquets Web Site</TITLE>
<meta name=\"KEYWORDS\" content=\"Important phrase
or keyword, another one\">
<meta name=\"Description\" content=\"A full
description of site goes here.\">
");
}
?>

 

bobriggs

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 403 posted 7:48 pm on Apr 20, 2002 (gmt 0)

I would remove all of that code.

iggy99

10+ Year Member



 
Msg#: 403 posted 7:56 pm on Apr 20, 2002 (gmt 0)

why?

Lisa

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 403 posted 8:41 pm on Apr 20, 2002 (gmt 0)

Best not to Cloak like that. You will be dropped faster then noodles in a noodle factory.

jatar_k

WebmasterWorld Administrator jatar_k us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 403 posted 8:51 pm on Apr 20, 2002 (gmt 0)

It would be advertising to the spiders that you were doing one of their least favorite practices.

iggy99

10+ Year Member



 
Msg#: 403 posted 9:02 pm on Apr 20, 2002 (gmt 0)

i know this is probably a dumb question---

how in the world would they (spiders) know ???

for me it would be worth knowing -

i have put alot of work into this project and would put tremendous value any adivse---

bobriggs

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 403 posted 9:19 pm on Apr 20, 2002 (gmt 0)

Do you know how to play bridge? Then maybe you know what a 'practice finesse is'.

That's what that is.

UA cloaking is not going to work. These same spiders CAN and DO send out the same spider and they cloak the user agent. So you don't really know whether it is googlebot or not.

On top of that, AFAIK, google doesn't read the tags in the head section as you've given. But it might just check to see whether you're faking the tags for other search engines.

Best is to make the best <header> tags that you can, and live with it.

Definition: a practice finesse in bridge is taking a gamble that you don't need to; you could achieve the same results without finessing.

Lisa

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 403 posted 9:25 pm on Apr 20, 2002 (gmt 0)

If a search engine wants to check if you are cheating. They can visit you using another IP address or using another user agent such as MSIE/Mozila or whatever. Don't try to trick them or fool them. They are smarter then you think. You only hurt yourself. Make your content properly use good titles, use relevant wording, etc... Cloaking is a game you don't want to play unless you know what you are doing.

There are good reasons to cloak, but most newbies don't understand the power and pit falls that exist. Stay far way from cloaking. The disadvantages out weight the advantages by 25:1.

Cloaking should be for applications only, like PDAs, user preferences, geographic location, referer optimizing, etc.. Not search engine optimization.

jatar_k

WebmasterWorld Administrator jatar_k us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 403 posted 9:31 pm on Apr 20, 2002 (gmt 0)

I think Lisa and bobriggs have said it well.

Only leaves one thing to add, I know how to cloak but I don't consider it as an option. It is entirely too easy to get caught unless you are on the ball 24/7 and even then it can happen. I don't entertain any delusions that I can outsmart the spiders forever.

Unless, as Lisa said, there are usability issues to alter content for then just make good content, one solid set of tags and keep on top of it and make alterations as needed and you can do a lot more for your site than if you cloak. If you get picked for cloaking it will be VERY difficult to use that domain to get traffic from then on.

iggy99

10+ Year Member



 
Msg#: 403 posted 10:26 pm on Apr 20, 2002 (gmt 0)

obviously - an interesting topic and everybody has an opinion!

i have reverted to my initial goal of serving browser bases menue at the top of the page since opere doues not seem to support layers and for some reason the link - coded to the base dir url for each category that triggers the layer events do not work ---

so -

visit the site and let me know it it seems to work cross/application

www.webshop101.com/alohaShop/

in the past i have lived with my competitors simply copying my hard work and sometimes using exactly the same tage come up ahead of me...

thanks for the help

(edited by: engine at 9:28 am (utc) on April 21, 2002)

iggy99

10+ Year Member



 
Msg#: 403 posted 10:39 pm on Apr 20, 2002 (gmt 0)

PS - if i were to try this tag cloaking - the tags would be identical except for the inclusion of the cities in which we are looking for returns...

thoughts on cloaked tags that are the same except for the addition of 3 to 5 words for spiders ? the inclusion of "tri city area" or maybe "greater chicago area" - for instance - ???

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
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