[英]How to show or hide an element based on ip address
Let's say I have this div element and I have the IP of 0.0.0.1 and the div is not showing but I go in the site with the IP of 0.0.0.2 and the div shows any idea of how to do this??
如果你 go 直接到 URL 像http://10.10.10.10/ ,你可以得到 'name' 部分與document.location.hostname
如果您使用域,則無法找出 ip 與該域關聯的內容。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.