This is a script written to a friend. It is used for cdn and is often used for attacks. However, the domain name cannot be blocked once an attack is encountered. We can choose to make a decision. This is the value of alexa in php. & lt ;? Php $ yuming = $ argv [1]; // obtain the alaxe ranking functiongetAlexaRank ($ domain = "www.cninfo360.com") {$ line = ""; $ data = "";
This is a script written to a friend. It is used for cdn and is often used for attacks. However, the domain name cannot be blocked once an attack is encountered. We can choose to make a decision.
This is the value of alexa in php.
This is used to obtain the pv value.
Shell judgment
#!/bin/bashdigstatus=`dig $1 ns|grep IN.*NS.*.$|grep -E "ns1.appleidc.com|ns2.appleidc.com"|wc -l`[ $digstatus -eq 0 ] && exitpaiming=`php alexa $1`if [ $paiming -lt 1000 ]thenecho highelseecho no highfipv=`php pv $1`echo "$1 pv num is $pv"
After determining what to do, you can write it yourself. A friend executes a post form and adds a status value to the domain name in the database.
This article is from "Fengyun, it's her ." Blog, please be sure to keep this source http://rfyiamcool.blog.51cto.com/1030776/1087560