My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Get Real Visitor IP Address

Deddy Pramana's photo
Deddy Pramana
·Feb 26, 2018

I use this PHP code to get the visitor's IP address even though they are using a proxy.

Here my code txeditor.com/jhplinuspa3

But why return error Use of undefined constant FILTER_VALIDATE - assumed 'FILTER_VALIDATE' on line 8 blah blah blah