300+ free video programming tutorials ― Learn for free!

PHP Tutorial - #46 - A Better Way to Get a Visitors' IP Address

Category: PHP - Author: Karl Hadwen

Home > PHP > PHP Tutorial - #46 - A Better Way to Get a Visitors' IP Address

Did you find this video helpful? If so, why not subscribe!? ? http://bit.ly/CognitiveSurge

In this video I'll be showing you how to get a user's IP address, but not just by using $_SERVER["REMOTE_ADDR"], I'll using a numerous amount of cases to try get around people using a proxy. Make sure you don't just copy and paste this code as we need to validate the IP address (I show you how in the next video). If we don't validate the IP address we're leaving our application over to hackers.

Like the Cognitive Surge Facebook page
https://www.facebook.com/cognitivesurge

Follow me on Twitter (Feel free to tweet me questions!)
https://twitter.com/karlhadwen

Join the Cognitive Surge Subreddit
https://www.reddit.com/r/CognitiveSurge

Follow me on Instagram
https://instagram.com/karlhadwen

Follow me on Goodreads
https://goodreads.com/karlhadwen