Solved

Drupal install ip reporting problem

Posted on 2007-03-28
4
226 Views
Last Modified: 2012-05-05
Not sure where to post this. I am using the drupal cms with a multi site install. The watchdog module logs all activity with hostname and action. On my particular install, it is reporting the server's own ip for every action. I am looking for some advice or help in order to fix it so that it reports the ip/host of the person doing the actual action. Any help would be appreciated.
0
Comment
Question by:rolandsnowe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
akmg earned 500 total points
ID: 18911625
Drupal uses the REMOTE_ADDR CGI environment variable to determine the "ip/host of the person doing the actual action" ( http://cvs.drupal.org/viewcvs/drupal/drupal/includes/bootstrap.inc , search for "function watchdog"). as a quick google search ( http://www.google.com/search?q=REMOTE_ADDR ) shows, this is not reliable. specifically, it doesn't work when you use a proxy. http://www.php.net/getenv shows ways to work around this.

hope that helps.
0
 
LVL 2

Expert Comment

by:akmg
ID: 18911641
ah, forgot: http://drupal.org/search/node/REMOTE_ADDR should be helpful, too, especially http://drupal.org/node/20471 .
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question