I'm trying to hide an element based on an IP-address.
With this script I can write out the IP-adress in the DOM:
<script type="text/javascript" src="https://l2.io/ip.js?var=userip"></script>
<script type="text/javascript">document.write("Your IP is :", userip)</script>
How Do I target this to remove the element below based on a specific IP-address?
if(userip == "127.0.0.1"){//remove your elements}should work.