| Beldak wrote: |
| The favicon.ico error spam happens to me also, I had to edit header.php and add BASEHREF to get them to stop. |
Spam? I guess you just mean frequent and unwanted alerts.
To handle predictable and innocuous 404s like this, you might consider editing error.php, placing a conditional around this line
| Code:: |
mail($notify, "[ $sitename Error: 404 ]", $message, "From: $notifyfrom"); |
if (!eregi('favicon', $client['request'])) {
or
if (!eregi('avatar', $client['request'])) {
or explode() a comma-delimited string which contains the various "don't bother me about these" patterns and loop through the elements as a send-mail-or-not check