404 emails for other domains
I setup a 404 error handler which sends mail for every 404 error but I get errors coming from other domain! why?!
|
not a clue without some useful information to go on, and a "please" or "thanks"... post your actual configuration file, provde sample emails to highlight the problems you're seeing...
|
sounds like it's not so common...anyway
.htaccess Code:
ErrorDocument 404 /error/trap.php?error=404 Code:
mail($to,'404',"on http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}",'from:...'); |
ok, so what domains are you getting? could be a dodgy dns setup somewhere and you're getting someone elses hits? all from a single source ip? any patterns in the domain names?
|
nothing in related t domain names, but most of the error pages I get for sites I include on a frame
|
what do you mean "in a frame"? again.. what domain names? real ones? if you're talking about iframes and such, then that's quite possibly you declaring frame sources...
|
yes I think $_SERVER['HTTP_HOST'] is sent to the server from the browser who might mistakenly send it to the original ip not the real owner
|
i could only guess that someone out there has hardcoded an incorrect IP address or something.
|
you mean $_SERVER['HTTP_HOST'] doesn't change?
|
i don't mean anything like that, don't know what you really mean by that either.... if you are getting http requests against a server that doesn't contain the domain being requested, then unless you're making a dumb mistake somewhere, then i'd have to conclude that someone else has put your ip in their dns records or something.
|
All times are GMT -5. The time now is 10:10 AM. |