when someone trips a 404, or other error, I get an email like this..
Code

Error 404 "Document Not Found" occurred for:
	http://vannin.com/fiz

Responded with error template 'error_404.txt'.

The error was caused by a visitor from: cf-204-93-173-22.cloudflare.com This visitor has caused a 404 error 2 time(s).
The error time was: 2010-05-12 17:52:42

No referring URL was associated with this visit.

NOTE: This email message was generated by an automated script:
      URL: http://vannin.com/guardian/ag-admin.pl
   server: vannin.com
   script: ag.pl
  address: [email protected]
_____________________________________________________________________________

Environment Variables:

AG_ERROR_CODE: 404
AG_ERROR_COUNT: 2
AG_ERROR_URL: http://vannin.com/fiz
DOCUMENT_ROOT: /var/www/virtual/v/a/vannin.com/www
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.3
HTTP_ACCEPT_ENCODING: gzip
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_CACHE_CONTROL: max-age=0
HTTP_CF_CONNECTING_IP: 173.162.162.82
HTTP_CF_IDENTIFY_BOT: 0
HTTP_CF_IPCOUNTRY: US
HTTP_CF_IPTYPE: CLEAN
HTTP_CF_USE_OB: 0
HTTP_CONNECTION: close
HTTP_COOKIE: 0wibiya32798_unique_user=1; __utmz=86733087.1273614104.110.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=http://vannin.com/; Error404=1; __utma=86733087.792751327.1263520286.1273659196.1273699890.113; __utmc=86733087; __utmb=86733087.8.10.1273699890; web_auth_cp=pmjzskvveiyykync
HTTP_FL_SERVER: 1n1f1
HTTP_HOST: vannin.com
HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.29 Safari/533.4
HTTP_X_FORWARDED_FOR: 173.162.162.82
PATH: /usr/local/bin:/usr/bin:/bin
QUERY_STRING: 404
REDIRECT_STATUS: 404
REDIRECT_URL: /fiz
REMOTE_ADDR: 204.93.173.22
REMOTE_HOST: cf-204-93-173-22.cloudflare.com
REMOTE_PORT: 37164
REQUEST_METHOD: GET
REQUEST_URI: /fiz
SCRIPT_FILENAME: /var/www/virtual/v/a/vannin.com/www/guardian/ag.pl
SCRIPT_NAME: /guardian/ag.pl
SCRIPT_URI: http://vannin.com/fiz
SCRIPT_URL: /fiz
SERVER_ADDR: 10.1.5.81
SERVER_ADMIN: root@localhost
SERVER_NAME: vannin.com
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.0
SERVER_SIGNATURE: <address>Apache/2.2.3 (Red Hat) Server at vannin.com Port 80</address>

SERVER_SOFTWARE: Apache/2.2.3 (Red Hat)

this one was before I changed REMOTE_ADDR in my scripts to HTTP_CF_CONNECTING_IP, and you can see where it thinks the visitor is from cloudflare. all the posts on my forums, all the new users, etc, were all showing from that IP address.

by making that change, I am seeing their IP, and not the cloudflare IP


"No matter where you go, there you are."
"If you can't do something smart, Do something right"
"There are three kinds of people in the world, those who can count, and those who can't"