ip_address

Functions that call ip_address()

Namesort iconLocationDescription
comment_savemodules/comment/comment.moduleAccepts a submission of new or changed comment content.
drupal_anonymous_userincludes/bootstrap.incGenerates a default anonymous $user object.
flood_is_allowedincludes/common.incCheck if the current visitor (hostname/IP) is allowed to proceed with the specified event.
flood_register_eventincludes/common.incRegister an event for the current visitor (hostname/IP) to the flood control mechanism.
ip_addressincludes/bootstrap.incIf Drupal is behind a reverse proxy, we use the X-Forwarded-For header instead of $_SERVER['REMOTE_ADDR'], which would be the IP address of the proxy server, and not the client's.
poll_cancelmodules/poll/poll.moduleSubmit callback for poll_cancel_form
poll_loadmodules/poll/poll.moduleImplementation of hook_load().
poll_votemodules/poll/poll.moduleSubmit handler for processing a vote
statistics_exitmodules/statistics/statistics.moduleImplementation of hook_exit().
user_block_ip_actionmodules/user/user.moduleImplementation of a Drupal action. Adds an access rule that blocks the user's IP address.
watchdogincludes/bootstrap.incLog a system message.

Functions called by ip_address()

Namesort iconLocationDescription
ip_addressincludes/bootstrap.incIf Drupal is behind a reverse proxy, we use the X-Forwarded-For header instead of $_SERVER['REMOTE_ADDR'], which would be the IP address of the proxy server, and not the client's.
variable_getincludes/bootstrap.incReturn a persistent variable.
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.