Obtain site visitor ip then show them their ip

Is there a way with code to obtain a site visitors ip then show that ip to them? I’m trying to make a vpn ad, I am also aware that ips Change I guess I’m trying to tell if they are using a vpn or not and if not tell them to


Check out this article on getting users’ IP:


In general, this is a popular request here on the forum so you can browse to find a lot of information!

I actually had found that post shortly after making this post thank you. I ended up going a different route