Program | Access "Get the address of the visitor
Ip=request.servervariables ("REMOTE_ADDR")
' The allowed IP address segment is 10.0.0.0~10.68.63.255
allowip1= "10.0.0.0"
Allowip2= "10.68.10.71"
Response.Write Checkip (IP,ALLOWIP1,ALLOWIP2)
function Checkip (IP,ALLOWIP1,ALL
ObjectiveThe topic said a bit long, in fact, is the following several things, the first is that the shell command can be executed within the program, and then pass the execution results to the variable, so that the subsequent transaction processing, the second is to use the Nmap command to get all the online IP and open ports in the current LAN, Finally, the results of nmap are processed to obtain only the
Ping programThe ping program was written by Mike Muuss to test whether another host is available.The program sends an ICMP echo request message to the main clause and waits for an ICMP echo reply to be returned.The ping program can also detect the return time of this hostTraceroute ProgramThe Traceroute program is a ha
1. Problem: Before using Inetaddress.getlocalhost (). Gethostaddress (), you can get IP 192.168.0.18 such as in the development machine test. But after deploying to a Linux server,This value becomes 127.0.0.1, how do I get a real IP address?2. Program: Public Staticinetaddress Getcurrentip () {Try{Enumerationnetworkinterface.getnetworkinterfaces (); while(Networ
These two years have been repeatedly to learn more about the TCP/IP protocol stack, but has always been on the surface, stop at the level of reading the textbook. Every time someone asks the TCP in-depth mechanism, there are many concepts in the brain that can not be clearly said. It's very stifling.This time hope can force themselves, the system to organize the network protocol, plans include several aspects:1 TCP/
Storing an IP table in a program in SQLThe writing is coarser and the other is wrong, just to achieve the effect. Let's test it.Create.asp-----------------------------------------------------------------------' Option ExplicitServer.ScriptTimeout = 1000On Error Resume Next' Define your SQL info hereSTRSQLDSN = "xxxx"Strsqlusername = "sa"Strsqlpassword = "" "This was where we connect to our SQL server Set a
Flow statistics tools, such as CNZZ, Baidu Statistics, 51, are very good, the function is also very powerful. Free to do nothing, I wrote a simple flow statistics tool, but only statistical access time, visitors IP, access routing, visited the page, from seo/seo.html "target=" _blank > Search engine and search keywords. Compared to the professional flow statistics is certainly insignificant, but to say a little bit, in fact, most of the data are not a
This article mainly introduces the use of Tencent IP sharing program to obtain geographical location examples, we refer to the use of itThe code is as follows:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.