Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Additional Bots


ajlowe

Recommended Posts

I have added an extra bot or two and some IP's I found hitting my site. Here his the code I changed if anyone else is interested.

-------------------------------------------------------------------------------------

// MSNBot

else if (strncmp($whos_online['ip_address'], "65.54.188", 9) == 0 ||

strncmp($whos_online['ip_address'], "207.68.146.56", 9) == 0 ||

strncmp($whos_online['ip_address'], "207.46.98.129", 9) == 0 )

{ ?>

<td class="dataTableContent" align="center">MSNBot</td>

<?php

$total_bots++;

}

 

// eXavaBot

else if (strncmp($whos_online['ip_address'], "64.124.85", 9) == 0 )

{ ?>

<td class="dataTableContent" align="center">eXavaBot</td>

<?php

$total_bots++;

}

 

// FastSearch.com

else if (strncmp($whos_online['ip_address'], "194.224.199.53", 9) == 0)

{ ?>

<td class="dataTableContent" align="center">FastSearch.com</td>

<?php

$total_bots++;

}

 

// Yahoo

else if (strncmp($whos_online['ip_address'], "66.196.90", 9) == 0 ||

strncmp($whos_online['ip_address'], "66.196.91", 9) == 0 ||

strncmp($whos_online['ip_address'], "66.196.73", 9) == 0)

{ ?>

<td class="dataTableContent" align="center">Inktomi/<br>YahooBot</td>

<?php

$total_bots++;

}

 

// GoogleBot

else if (strncmp($whos_online['ip_address'], "66.249.78", 9) == 0 ||

strncmp($whos_online['ip_address'], "66.249.79", 9) == 0 ||

strncmp($whos_online['ip_address'], "66.249.68", 9) == 0 ||

strncmp($whos_online['ip_address'], "66.249.69", 9) == 0 ||

strncmp($whos_online['ip_address'], "66.249.64", 9) == 0 ||

strncmp($whos_online['ip_address'], "64.68.85", 8) == 0 ||

strncmp($whos_online['ip_address'], "64.68.84", 8) == 0)

{ ?>

-------------------------------------------------------------------------------------

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...