S
S
Sasha Misnik2015-09-16 01:25:43
PHP
Sasha Misnik, 2015-09-16 01:25:43

How to get ip subscribers?

On the site, a person fills out a form, and becomes my subscriber. How can I implement that I would receive the ip of the subscriber?
dbf854d1d7434e30a6e4d785e3b4ba70.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
andead, 2015-09-16
@Razorvin

https://www.drupal.org/project/user_ip_address

D
Denis, 2015-09-16
@Ayahuaska

$_SERVER['REMOTE_ADDR']
The IP address from which the user is viewing the current page.
PHP-doc .
Keep in mind, the user may well be behind NAT.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question