We all know that there are many voting functions on the Internet. as a result, I have the software that collects the number of votes. The idea for these days is to change an IP address and continue to access the Web page several times. prevent the IP address from being blocked. invalid flashing ..... here, I used winfrom to write a demo of changing the ip address to open the web page. (I only implemented the core things, And I will change it later. if you are interested, you can do it. capture free proxy ip addresses from the Internet and set a time interval. the number of times you refresh each other, and the number of times (How many seconds) you change to an ip address .. the interface is like this.
Public partial class Form1: Form {public Form1 () {InitializeComponent ();} void ShowWeb () {// I am writing the address here. there will be time in the future to get it done webBrowser1.Navigate ("http://www.ip138.com/");} # region change proxy [DllImport ("wininet. dll ", SetLastError = true)] private static extern bool InternetSetOption (IntPtr hInternet, int dwOption, IntPtr lpBuffer, int lpdwBufferLength); public void RefreshIESettings (string strProxy) {const int INTERNET_OPTION_PROXY = 38; const int INTERNET_OPEN_TYPE_PROXY = 3; Struct_INTERNET_PROXY_INFO struct_IPI; // Filling in structure =internet_open_type_proxy; struct_IPI.proxy = Marshal. stringToHGlobalAnsi (strProxy); struct_IPI.proxyBypass = Marshal. stringToHGlobalAnsi ("local"); // Allocating memory IntPtr intptrStruct = Marshal. allocCoTaskMem (Marshal. sizeOf (struct_IPI); // Converting structure to IntPtr Marshal. structureToPtr (struct_IPI, intptrStruct, true); bool iReturn = InternetSetOption (IntPtr. zero, INTERNET_OPTION_PROXY, intptrStruct, Marshal. sizeOf (struct_IPI);} struct Struct_INTERNET_PROXY_INFO {public int dwAccessType; public IntPtr proxy; public IntPtr proxyBypass ;} # endregion // <summary> // change IP address access /// </summary> /// <param> </param> private void button#click (object sender, eventArgs e) {RefreshIESettings (textBox1.Text); ShowWeb ();} /// <summary> /// switch back to the IP address of the Local Machine /// </summary> /// <param> </param> private void button2_Click (object sender, eventArgs e) {IPAddress localIp = IPAddress. parse ("127.0.0.1"); IPEndPoint iep = new IPEndPoint (localIp, 80); RefreshIESettings (iep. toString ());}}