Cheating methods and anti-cheating measures in web site

Source: Internet
Author: User

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

Do more and more Web site, I am also one of the students cheat more and more, perhaps read the article you are one of them.:)
Next, I will say some common cheating methods and corresponding measures ...

============== use analog commit cheat ===============
1.1, create a new page file a.htm, write the following code inside.
</script>
var location= ';
Document.formya.sendurl;
</script>
<form name= "Sendurl" method= "post" action= "http://www.anyiba.com" ></form>
1.2, add in your page: <iframe src= "a.htm" width= "0" height= "0" ></iframe>
Description: In the framework of the use of the submission of the way to open the other's website, so in the statistics can be seen from the antecedents ...
Of course, can also simulate the click. That is, create a new A.THML to add the following code:
<script>
document.write ("<a href= ' http://www.anyiba.com ' >Link</a>")
Document.links (0). Click ()
</script>
Then frame a.thml ... It's cool. This trick can almost kill many self-help chains on the market, including some big ....

============== use analog submit cheat coping style ===============
1, add the following code at the beginning of your page:
if (self!=top) {//Description: If this page is not on the top floor, that is, the address in the address bar is not yours
Alert ("Welcome to the Comfort Bar"!\n, please enter the URL directly!) Www.anyiba.com ");
window.open (self.location, ' _top ');
}
else{//otherwise do not count each other's antecedents
document.write ("Start Statistics")
}
============== use directly to call each other's statistics file cheat ===============
If the Web site is used, if (self!=top) {window.open (self.location, ' _top ');} Then use the frame mode brush is invalid. There is another way to avoid it.
At present, many Web sites use such a way to statistics <script>document.write ("<script src= ' count.asp?url=" + document.referrer + "' ><\ /script> ");</script>
In fact, this is even more fun, do not have to open the Web site page can be brushed.
2.1, create a new a.html. The contents are <script>document.write ("<script src= ' count.asp?url=" + document.referrer + "' > <\/script> ");</script>
2.2, repeat "simulate submit cheat" way, will <form name= "Sendurl" method= "post" action= "http://www.anyiba.com" ></form> change to < Form Name= "Sendurl" method= "post" action= "a.html" ></form> just fine.

============== use directly to call each other's statistics file cheating countermeasures ===============

I think of the way is to judge the other open page is not your ... The method is as follows:
For example your statistical method is <script>document.write ("<script src= ' count.asp?url=" + document.referrer + "' ><\/script> ";</script> ... Then add the following code directly to the beginning of the count.asp ...

var topurl=document.domain.tolowercase ()//Get current host name
var yourdomain= "anyiba.com";/set your own domain name
if (Topurl.indexof (yourdomain) <0)//If the domain name is not found in the resulting hostname, it is judged as cheating
{
window.open (' http://www. ') +yourdomain, ' _top ')/to pop-up your page
}

=================== today to say so much, of course, I said may be just a few of them, but change to change is almost all these methods, like the net horse, many varieties of it. Not all of us can add ... Welcome everyone to join my web site, fair cooperation, I wish you the flow of the rise and rise ... Thank you!

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.