Forum Moderators: coopster

Message Too Old, No Replies

dynamically showing 2 seperate pages

to different types of visitors

         

lindajames

4:57 pm on Aug 17, 2003 (gmt 0)

10+ Year Member



Hello,

My sites index page is frame based and there is no way i cannot use frames. Neither can I use a splash screen. I've been told that search engines dont recognise frames. so i was thinking, is there anyway to dynamically have a index.php file that detects whether the visitor is a searchengine of any kind, if so then it just gives a description of my site if not then it displays my real site. I would be very greatful if someone can tell me how i can do this in php.

cheers
linda

jaski

6:05 pm on Aug 17, 2003 (gmt 0)

10+ Year Member



Hi Linda,
What you said can be done .. but just so that you really know what you are doing .. it will be a good idea to read more about it.

Cloaking [webmasterworld.com]

Also look at rest of the threads in that forum .. its a dedicated cloaking forum.

tedster

6:13 pm on Aug 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've been told that search engines dont recognise frames.

That was the case a few years back, but it's not true today. With a frame site, you will have to deal with visitors from search engines who land on a frame page that is orphaned from its parent frameset. And there is a lot of experience that says non-framed sites do better in ranking well - at least as a general rule.

But the frame pages do get spidered.

jaski

6:21 pm on Aug 17, 2003 (gmt 0)

10+ Year Member



Doing it with PHP.

<?

if($HTTP_USER_AGENT == 'googlebot' ¦¦ $HTTP_USER_AGENT == 'scooter3.3')
{
include('google_index.htm');
}
else
{
include('index.htm');
}

//you can keep on adding ¦¦ and more robots.

?>

Note : please check the exact useragents of bots ..

lindajames

6:28 pm on Aug 17, 2003 (gmt 0)

10+ Year Member



do i have to add all the robots in the actual source code? is there any chance that a real visitor can actually end up seeing the version of the page that is made for the robots? for example if i only have the googlebot specified is there any chance that a normal user can be detected as googlebot and shown the googlebot content?

also, where can i get a list of all the user agents to add to the script?

cheers
linda

kelly_boyce

8:20 pm on Aug 17, 2003 (gmt 0)

10+ Year Member



how can you actually test that the above works? other than to wait for google to index the page and see how it is indexed

jaski

5:13 am on Aug 18, 2003 (gmt 0)

10+ Year Member



for example if i only have the googlebot specified is there any chance that a normal user can be detected as googlebot and shown the googlebot content?

My guess is that liklihood of that happening is less than one in million...if someone has a custom made browser with googlebot specified as user agent.

do i have to add all the robots in the actual source code?

Those you want to cloak for .. yes. Rest will see what your normal user sees.

>>actually test

You cannot .. but if you want to test if the method itself works, you can do so using different browsers which have different user agents.

lindajames

10:18 am on Aug 18, 2003 (gmt 0)

10+ Year Member



does anyone know the user-agent for the "Search Engine Spider Simulator" at searchengineworld.com?