-8

I am creating a project. Now I want the IP address of the guest who are unauthorized person.

halfer
  • 19,824
  • 17
  • 99
  • 186

2 Answers2

2

try this one $_SERVER['REMOTE_ADDR'] you can also check here for more info How to get the client IP address in PHP?

Community
  • 1
  • 1
Pengun
  • 734
  • 1
  • 7
  • 18
1

Try this

<?php $ip = $_SERVER['REMOTE_ADDR']; ?>
Nagaraj S
  • 13,316
  • 6
  • 32
  • 53