Python--denyhttp Project (2)--ACM Proctor Client beta? Requirements Analysis

Source: Internet
Author: User

Before writing a script, write a requirement analysis

Will write more scripts later, will pay attention to this aspect of

  

Prohibit HTTP requests? Requirements analysis

Core Features:

By modifying the Hosts file, users are forbidden to visit Baidu and other search engines

Implementation method:

Overwrite the Hosts file requirements with the cmd console command copy:

    1. Server and Client
    2. Process detection and alerting
    3. Gui
    4. Countdown
    5. Version update

(i) Server and client

By calling Python in the Socketserver module, the server-side function is quickly implemented, outside of the tournament time, access to the server, the prompt is not in the race time. Access to the server is forbidden during the race.

(ii) Process testing and reminders

The client sends a request through the CMD Console ping command or Python to see if the webpage responds, and then send an alert message to the server.

Ping Pass Result: (Baidu in order to prevent being attacked, add the shell, www.a.shifen.com)

Ping does not pass the result: (Baidu's URL map to the native address 127.0.0.1)

Three Gui

Draw the GUI as follows

When the actual programming is implemented, changes are made

  

(d) Countdown

Live Canvas update with Tkinter module

(v) Version update

Send version update information when you start the software

Python--denyhttp Project (2)--ACM Proctor Client beta? Requirements Analysis

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.