Questions tagged as 'ip'

3
answers

Regex verify IP

I am implementing a regex to accept IP address, for this I am using a mask in the textEdit component of DevExpress, but when I leave the field blank or with only a filled part it locks all other controls of the form. Regex used: ([0-9]{1,3}\...
asked by 01.02.2017 / 12:55
1
answer

Why is not it good to use this function and how do I identify the user's IP then?

public function get_client_ip() { $ipaddress = ''; if (isset($_SERVER['HTTP_CLIENT_IP'])) $ipaddress = $_SERVER['HTTP_CLIENT_IP']; else if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])...
asked by 21.07.2017 / 22:10
2
answers

Block user access with foreign IP's

Is it possible to restrict access to a particular site or Web system, so that only Brazilian IP's can access it? I have a mini-system in PHP, and to further enhance your security, I'd like to make it inaccessible to all types of foreign acces...
asked by 15.05.2018 / 03:59
2
answers

Reading .CAP files efficiently with Python

I have some .CAP files that came from capturing packages with tcpdump. When trying to open with wireshark, the machine gets very slow, as I imagine it will try to load everything into RAM. I would like to write a program in Python to work mor...
asked by 01.03.2017 / 20:55
2
answers

Bat to enable and disable proxy

I need a bat to activate and deactivate proxy already with the set ips can anyone help me? To activate use the following command: REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_...
asked by 23.01.2015 / 12:45
2
answers

Save the IP of the visitor in a text file, but how can I not save it again if it is already there and how to read it?

I used the answer to this question to save the IP in a text file: How to save the IP of who visited my site in a text file? This is what I want to create a "like" button for students to enjoy those they think are the best teachers. But...
asked by 11.09.2014 / 15:24
1
answer

How to save the IP of who visited my site in a text file?

I'm using the code below, but it only writes ":: 1" to the file. <?php $arquivo = "ips.txt"; $file = fopen($arquivo,"a"); $string = $_SERVER['REMOTE_ADDR'] . "\n"; $fp = fwrite($file,$string); fclose($file); ?> Is it because I'm on...
asked by 09.09.2014 / 18:19
1
answer

IPv4 only with PHP with ipv4 / ipv6 link

I've always used $_SERVER['REMOTE_ADDR'] to get the IP user / visitor on some systems. But I started to use a fixed IP at work, which is IPV4 , but when I go to see the registry I have accessed IPV6 . But on sites like forums an...
asked by 05.02.2018 / 18:36
1
answer

Capture visitor IP on a WordPress site in .txt file

I'm trying to register the IP, Referrer, and the link date of all visitors to my Wordpress site in a .txt file, but I'm not being sucessed. I've tried the Plugin ' WebRTC IP Grabber & Logger (STUN VPNs) ', but this only registers the IP...
asked by 02.04.2017 / 15:52
3
answers

How to differentiate device type from IP?

How do I know what kind of device is using an IP? I wonder if there is any way to validate whether an IP belongs to a computer, a mobile device, etc. This is to differentiate device types from IP. I'm interested in doing this in Java....
asked by 10.08.2016 / 13:46