Questions tagged as 'ip'

3
answers

How to determine the approximate location of the user by IP?

When I use search engines for certain searches, mostly related to maps or commercial establishments, these systems often serve me relevant results for my geographical location. When I'm on the PC, search engines may not even know my geographi...
asked by 05.10.2014 / 22:23
3
answers

Script to query external IP [closed]

How can I get the address of IP of the person who logged into my system? I searched Google and all I find are queries on third-party sites ( link , # Does anyone know of any links or scripts (PHP, Python, ...) that do this?     
asked by 29.06.2015 / 18:41
2
answers

How do I get the user language of the browser?

I have a website in 3 languages, EN , EN and EN . But on some separate machines when accessing the site by the browser is directing to page in English . This happens because of the code below that I developed to retrieve the user's brows...
asked by 17.08.2015 / 14:29
3
answers

How to get ip from a user using php?

I'm using the getenv("REMOTE_ADDR") function to get the ip of users who enter a certain page of my site and then I made a if to redirect that ip that is not equal to the variable of ip allowed. But when I play...
asked by 23.01.2017 / 21:49
3
answers

How to get the user's IP via Javascript?

I have three commands that together return the user's IP. I wanted to turn them into a single command with the command return . Like this: return userip; How do I? Here is the code: <html> <body> <script type="t...
asked by 07.12.2016 / 14:56
1
answer

How to make a multilingual website and identify the country of origin?

I am developing a website in JavaEE and would like it to be multilingual (at least English, Portuguese and Spanish). But I would like to know how large websites, such as Facebook, for example, do to identify the country of origin and offer the s...
asked by 31.08.2014 / 06:38
4
answers

How to block website and leave free only for some ips? [duplicate]

I would like to know how I can block my site that is under maintenance and leave free access for two ips, I'm doing this, but it only leaves one free. I want you to be free for both of you. $ip = '10.11.30.175'; $ip ='10.11.30.182'; if ( $...
asked by 10.10.2016 / 20:45
1
answer

How to get the HOST IP through the domain in PYTHON?

In PHP, to get the ip of a given domain, I usually use the gethostbyname function. PHP example: gethostbyname('www.google.com'); //201.17.165.210 What about Python? How can I do this?     
asked by 20.07.2016 / 18:19
1
answer

How to block a range of IPs with php?

I have a function in php, but I would not like it to be executed by people in a certain country, how do I get the php script to block a range of IPs? Example, block the range of US IPs. It is necessary to be able to add more range of IPs....
asked by 01.09.2016 / 05:51
1
answer

Why does the decrease of the subnet mask double the original network size?

Reading about IP protocol and about network addressing, I did not understand why the " decrease " of the subnet mascara size in 1 bit , generates a " > increase "of the size of the network. I understood the reason for the increase, but not...
asked by 29.11.2017 / 20:22