Solved

Drupal install ip reporting problem

Posted on 2007-03-28
4
225 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

726 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