phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Phpbb check if bots (googlebot, msn, yahoo) spidering.

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
::  
Author Message
cheapez



Joined: 17 May 2007
Posts: 15

Phpbb check if bots (googlebot, msn, yahoo) spidering.Posted: Thu May 17, 2007 12:31 am    Post subject: Phpbb check if bots (googlebot, msn, yahoo) spidering.

Can anyone write me some codes that will do the job bellow?

if user is a bots (like googlebot) is spidering, crawling my forum or a page

then
CAN DO THIS
else
CAN'T DO THIS

For example:
if ($user_id != ANONYMOUS)
then you can't see the memberlist.php link
else
You can see

It's nice if the codes will match the bots ips then (yes, you can do this but not this)

I tried alot but I really don't know anythings about PHP
thank you, I'm waiting for this mod
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14814

Phpbb check if bots (googlebot, msn, yahoo) spidering.Posted: Thu May 17, 2007 9:52 am    Post subject: Re: Phpbb check if bots (googlebot, msn, yahoo) spidering.

And welcome Very Happy

What you want to do is not insignificant, and could, if you would use this to show a different content to bots and regular users, be cloaking.
And cloaking can make your site blacklisted at Google.

Technically, you could use the is_bot() function used in the simple show bot mod :

Code:
$bot_id = is_bot(decode_ip($row['session_ip']));
if ( $bot_id >=0 ) {
// ...
} else {
// ...
}


But it's not really meant for this, the best would be to store such info in the sessions tables, to be able to use them everywhere without redoing the ip matching. But it's the principle.

Again, be careful with such techniques, simple show bots isn't cloaking since bots and regular visitor will see the exact same content in the page.

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14814

Phpbb check if bots (googlebot, msn, yahoo) spidering.Posted: Thu May 17, 2007 2:02 pm    Post subject: Re: Phpbb check if bots (googlebot, msn, yahoo) spidering.

Topic splitted.

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
Page 1 of 1

Navigation Similar Topics

Jump to: