Simple PHP program for online voting

Source: Internet
Author: User
The PHP voting program will be used for activities. Today, we will share a PHP voting program for all of you. if you need to know it, let's take a look. PHP click vote, which leads you to the top spot. This article describes the ticket flushing method and defense strategy. the case was one and a half months ago... the PHP voting program will be used for activities. Today, we will share a PHP voting program for all of you. if you need to know it, let's take a look.

PHP click vote, which leads you to the top spot. This article describes the ticket flushing method and defense strategy.

One and a half months ago, there were two reasons for the failure to release the domain name in time. one was because the blog domain name was not filed for record, and the other was the most important, releasing in time has serious damage to the case website, which is not what I should expect from iters.

Ps: There is a risk of ticket swiping. exercise caution when using it. This article is intended for study and discussion and cannot be used for improper purposes!

This post is a masterpiece of this blog. the subject of this story is recently asked by a friend because her sister participated in a calligraphy competition and asked me if I could vote on my website, as a rookie who just debuted for a year, I am very scared. When I first came into contact with PHP a year ago, I did not know how to do it. now the first reaction is Curl.

If you don't talk much about it, go directly to the code:

 

Okay. let's analyze it.

1. The website has a limited IP address that can only be cast once a day.

2. fill in the source. The website will determine whether the source of the request is a valid path.

The others are the common Curl options.

How to prevent it?

I am not easy to learn, just as a brick-and-mortar.

1. IP address restriction: This article has cracked

2. restriction Source: This article has cracked

3. verification code: as one of the most anti-human inventions, we can use a self-automated Turing test with a tall name to distinguish computers from humans. Opencv is available.

4. record the MAC address

Theoretically, each network card has a unique MAC address. if a change may cause a conflict and the network cannot be accessed, you can use software to modify the address.

5. registered members

Although the verification code can still be broken through, Curl fills in the parameter and then POST it in the past, but the threshold is a little higher, please ignore it.

6. mobile phone

Enter the mobile phone number and text message verification code when voting. The cost is high and the organization is unwilling. the user sends the xx command to XX, and the user pays for it. the user does not want to. Currently, only the verification code is provided, mobile phone verification is the best prevention measure.

Address:

Reprinted at will, but please attach the article address :-)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.