Since the use of the VPS, found that a large number of network attacks exist all the times, such as the scan port, was brute force, was guessing the background password, spam comment harassment. For some time, I have found most IP attacks from Russia and Turkey, while my site is Chinese and most of the readers come from China. So shielding the IP segment of both countries is not going to affect site access,
Automatically get IP address
First step: Activate the network card
Linux system installed after the default network card is eth0, with the following command to activate this network card.
The code is as follows
Copy Code
# ifconfig eth0 up
Step two: Set the network card to start when entering the systemIf you want to automatically get the IP address to the Internet e
Tags: source IP source mac destination IP destination macSource IP Source Mac destination IP destination mac, changes throughout the network.Local network:The 1.vlan+mac is addressed in a way that does not cross the gateway. The source IP source mac and destination
One NIC can choose different IP according to the network environmentSometimes we encounter a situation where, when participating in a company project, the network environment does not have a DHCP service, the IP configuration must be specified manually, and when we go home from work, we must change the IP configuration in order to properly surf the internet. In f
The acquisition of dynamic IP address of Linux system and configuration of static IP addressToday, after installing the virtual machine and Linux system, the following experiments have been done in this experiment, the knowledge points and the experimental process are as follows#- 1 . broadcast protocol Options [bcast] BROADCAST Specify the for sending broadcast messages; IPNBSP; address. Use
Cloud data www.yunshuju.com Statistics mainframe instability is the webmaster worry, webmaster can not change the hard resources, when we use a space business, to a large extent, the impact of the future operation of the site, so it is very important to choose a good space provider and host.
1, domain-free binding
The user can resolve the domain name directly to the independent IP host www.yunshuju.com/host/duliipzhuji.asp, do not need to go to the
Set a static IP address for the machine under Linux:Vim/etc/sysconfig/network-scripts/ifcfg-eth0Modify the contents of this file in the following form:# Intel Corporation 82541GI Gigabit Ethernet ControllerDevice=eth0bootproto=static #为静态的Hwaddr=00:15:17:b2:dc:b5Onboot=yesIpaddr=10.20.134.199 #这个是设置的静态IP地址netmask=255.255.254.0gateway=10.20.134.1 #网关After modification, the need to restart the network is the
When writing LAN programming, it is often necessary to use IP controls.Excuse me, I'm still using the VC6.0.drag it to the dialog box to use it!。。。。。。。。。。。。。。。。。。。。 Split line ........ ........Get local IP Display IP control(1) Get the local computer nameint Getlocalhostname (CString shostname)//Get local computer name{Char szhostname[256];int nRetCode;Nretcode=g
We just need to add the following code to the feedback.php to judge it.
Note: The bottom is just a PHP restricted IP instance code, if you intend to apply to the CMS, please modify yourself, or if you are using DEDECMS, you can contact the site.
Copy Code code as follows:
Add IP Access Restrictions
if (getenv (' http_client_ip ') strcasecmp (getenv (' http_client_ip '), ' unknown ')) {
$use
"How to view the QQ friend's IP address information"
1. First, we right-click the blank area of the taskbar below the computer and find the Task Manager open in the Drop-down menu.
2, go to the Task Manager interface, find the performance options in the top menu bar, and then find the Resource Monitor open in the lower right corner of the performance dialog box.
3, into the Resource Monitor main interface, we in the top of the menu bar to find
Original: Java script development to obtain IP-specific geo-location information based on customer IPSource code: Http://www.zuidaima.com/share/1550463468522496.htmGet IP addresses based on client IPOperation Result:Package Com.zuidaima.founder.util.ip;import Java.net.inetaddress;import java.net.unknownhostexception;/** * Function Description: Test * @author www.zuidaima.com */public class iptest{public sta
Firefox and Chrome support WEBRTC can request the stun server to return to the intranet IP, unlike the XMLHttpRequest request, stun request is not seen in the developer tool.
Get the IP addresses associated with a account function Getips (callback) {var ip_dups = {}; Compatibility for Firefox and chrome var rtcpeerconnection = window. rtcpeerconnection | | window.mozrtcpeerconnection | |
Window.webk
Iptables Shielded IP
The code is as follows
Copy Code
Iptables-i input-s 202.77.176.106-j DROP
An entire paragraph, the order from 192.0.0.1 to 192.255.255.254.
The code is as follows
Copy Code
Iptables-i input-s 192.0.0.0/8-j DROP
Prohibit IP paragraph when to see the amount of clearance, do not bar their own
Dim Ip,ipstring,visitip' The IP address to be bannedIpstring= "|195.225.177.34|195.225.177.137|72.232.250.10|"' Get IP AddressIP = Request.ServerVariables ("Http_x_forwarded_for")If IP = "" ThenIP = Request.ServerVariables ("REMOTE_ADDR")End IfVisitip= "|" IP "|"If InStr (1,
mask equal to. You can see that the subnet mask creates the possibility of a multiplexed IP address. That is, for the same IP address, different subnet masks can be labeled with different network endpoints. But because the subnet mask is just part of the routing protocol (which can look at the IP header above, does not have a subnet mask), and it may bring more
One, add a single IP address:In/etc/sysconfig/network-s/, the new file ifcfg-eth0:*,* is a numeric ordinal, and multiple IPs are incrementedTake 0 As an example to establish a file ifcfg-eth0:0cd/etc/sysconfig/network-s/VI ifcfg-eth0:0Input content format:device=eth0:0Type=ethernetOnboot=yesBootproto=staticIpaddr= to add the IP address of the bindingnetmask= Subnet Maskgateway= Gateway AddressSecond, batch
storage space Comparison:
VARCHAR type storage 0.0.0.0-255.255.255.255 is 7-15 bytes
int Type storage is 4 bytes 1 bytes 8 bits 2^31-1
IPv4 Essence is a 32-bit binary string can be stored with int
The IPv4 address (10-in-4) is converted to a 32-bit 2-in-system.
1. Convert to 2 first, then connect
2. Left 3*8 2*8 1*8 0 Bits
Conversion:
Conversion Mode
PHP built-in Functions
Mysql Built-in Functions
string int
PHP Long2ip (118.190.3.21
Tags: linux mysqlCount the total number of MySQL connections for each IP:Mysql> Select Substring_index (Host, ': ', 1) as IP, COUNT (*) from the information_schema.processlist group by IP;The status is as follows:+----------------+----------+
| ip | count (*) |
+----------------+----------+
||3 |
| 10.182.41.191 |1 |
| 10.190.249.204 |1 |
| 10.204.161.60 |10 |
|
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.