The idea and realization of anti-malicious click Code System

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Baidu promotion, the existence is the reason, it may bring the potential benefits to the enterprise is very big, however, its advertisement expense lets most enterprises cannot undertake. At the same time, how to minimize the cost of advertising investment, to achieve ROI (return on investment) to maximize it?

Perhaps you can optimize Baidu to promote account structure, optimize keywords, optimize creativity, but you can not do, is the peer or other motives of the people of your ads malicious clicks, Guangzhou Yi Tiger Technical Team, proposed as follows a solution, although not completely eliminate malicious clicks, but at least to avoid some malicious clicks, This article is written by Guangzhou Easy Tigers technical team, belongs to the technical article, if you see this article, the proposal transmits it to your technical support, he will know how to operate and implement this system.

First of all, we have to figure out how malicious clicks are generated: peers pay attention to their own bidding rankings, find your advertising links, hope that by consuming your advertising costs so that you can use the promotional costs as soon as possible and advertising automatic line; peers hire gunmen or instruct internal employees to click on your ads anytime, anywhere; Internal Baidu has individual personnel to increase their own performance by clicking Ads. These malicious clicks may be anytime, Baidu promotion although has the screen closed IP function, but these malicious click transforms the IP to be very easy to cause extremely, cannot guard against.

Many malicious click Software on the market, advocating its function to prevent all malicious clicks, and do not say whether it can play a role, only the cost of people to be skeptical. Okay, get to the point, how to write your own malicious click system?

First of all, we know that malicious clicks, can not start from the IP, because the IP is changed, if a person with ADSL constantly dialing to replace IP to click on your bid ads, you are powerless. Your closed IP is also likely to be allocated to your new potential customers, so that customer churn is also possible. So can we start with the client's unique identity?

If you have this idea, you must want to use ASP or PHP or JS or other editing language to get the MAC address of the client computer, or the unique serial number of the hard disk, or the CPU's unique number. Unfortunately, whether you Baidu or Google, the result is not get this information, the only possible, is through the ActiveX plug-in to get, but the new version of IE will automatically shut your ActiveX automatic screen, who will be willing to click a hint unsafe installation prompts and let you carry out malicious click to filter the decision ? Clearly this is unrealistic. Only one goal is to get the client's unique identity, provided it is friendly.

ASP and PHP can only get server-side information, these give up. JS cannot obtain the MAC address, but can obtain the client's browser information that is sufficient to generate a unique identification number.

Attribute Description Iefo

appCodeName returns the code name of the browser. 419

appMinorVersion returns the secondary version of the browser. 4NoNo

AppName returns the name of the browser. 419

AppVersion returns the platform and version information of the browser. 419

Browserlanguage returns the language of the current browser. 4no9

Cookieenabled Returns a Boolean value indicating whether cookies are enabled in the browser. 419

Cpuclass returns the CPU level of the browser system. 4NoNo

Online returns a Boolean value that indicates whether the system is in offline mode. 4NoNo

Platform returns the operating system platform running the browser. 419

Systemlanguage returns the default language used by the OS. 4NoNo

UserAgent returns the value of the user header sent by the client server. 419

Userlanguage returns the natural language settings for the OS. 4no9

To get the above information JS, plus browser window information:

String (window.screen.width+ "x" +window.screen.height) monitor pixel ratio

String (window.screen.colorDepth) display color depth

String (window.screen.fontSmoothingEnabled) display font

... Get all the client data you can get (different browsers support these functions differently, but they all return a value and connect them)

Connect all the client information you get to a string, and the resulting string is basically the only one. After getting a unique string, the things behind it are much better, this does not mean that malicious clicks have been successful because the same computer may have several different browsers installed, that is, the same computer may produce multiple unique IDs, but that's enough for us to use, it's impossible to install a computer with unlimited browsers, Brush your bid every day.

JS access to a unique identity, you need to pass it through Ajax to the remote server ASP or PHP program analysis, which is similar to the CNZZ and other statistical code, but we do not want to do statistical code, we do not need to develop a statistical system. Server-side through other editing languages, such as ASP or PHP, it is very easy to record the unique identity, while recording the corresponding IP to make a standby. When the unique identity of each access is recorded in the server database, can record the visitors ' visiting keywords at the same time (get the visitor's search keyword Baidu has a lot of tutorials, in some do not repeat), by judging, you can know whether the customer is every time from Baidu search in, open and close, repeat this operation, Basic can be positioned as a malicious click. With a unique identity, you can mark it as denied access.

On how to deny access, there are many tutorials on the web, in fact, you can do, should not be too radical means to attack malicious clicks. Only need to give a hint to the malicious click, to prevent its again operation malicious click on it.

The simplest approach is to generate a unique identity via JS on the client, using AJAX to compare the unique identity record on the remote server, and if the object is denied access, the cookie is written to the malicious user's browser, which is identified as denying access to the object. To this step, basically only need to do a small program, for example: "Your operation has malicious click Suspicion, please give up continue to implement malicious clicks, if you like this site, you can bookmark", if the object is still malicious click, you can through a small JS program, while (true) { window.open (' www.xxxxxx.com ', ' _blank ')} Such an infinite pop-up of a page caused the browser to die, can be based on malicious clicks of different programs, there are some more friendly hints, or more complex punishment means, this depends on you.

So far, Baidu bid to prevent malicious click System ideas and implementation has been finished, I have a code to write, JS and dynamic language interaction, the basic can be implemented to prevent malicious clicks, but, good Internet environment, this type should not appear this kind of malicious click Code. Guangzhou easy Tiger Advocate Green Internet environment, hope this small program can help you reduce malicious click to bring you the loss, also hope more malicious click to give up this unfair, illegal means of competition.

This article by Guangzhou Easy Tiger http://www.easyhoo.cn original offer, A5 starting, reprint please specify, thank onlookers.

Related Article

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.