note 58402 deleted from function.eregi by nlopess
| From: | nlopess@php.net | Date: | Thu, 03 Nov 2005 09:48:14 +0000 |
| Subject: | note 58402 deleted from function.eregi by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98017@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Use eregi to help search engines indexing your website better. If you have a lot of
"links" in the top, and this repat at every page the site will fall from indexing.
This works well:
<?php
if(eregi("googlebot",$_SERVER['HTTP_USER_AGENT'])) {
// Nothing
} elseif (eregi("msnbot",$_SERVER['HTTP_USER_AGENT'])) {
// Nothing
} elseif (eregi("yahoo!",$_SERVER['HTTP_USER_AGENT'])) {
// Nothing
} else {
include("my-huge-top-links-list.php");
}
?>
And of course, // Nothing could have a greater function. Like send an short email that google was
there or insert to database or so.