A preliminary study on flash application in anti-collection

Source: Internet
Author: User
Keywords Flash anti-capture

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

Objective

Now the popularity of the site to collect the degree of everyone has been commonplace, generally, the CMS must have collection function. For many webmaster, site construction early, acquisition is very necessary, however, when your site is big, the problem of collection and prevention must be considered. Before I discussed related topics in Discuz, and no one caused attention, however, ready to do professional information station, I did not give up on the collection of prevention considerations. Our goal is: can adopt, can prevent. That is, can attack can guard. Some people say you are despicable, pick others, and not let others pick you. The truth is: reality is brutal.

Current popular methods of preventing collection

1, pagination file name rules to prevent collection countermeasures

Focus on the user experience is not recommended to use pagination, too long to consider the article. Encrypt the paging file name, in fact, a little bit of brain to know: your paging link is always placed in a fixed position, analysis can be collected.

2, page code rules to prevent collection countermeasures

Mainly multiple templates, anti-collection methods. Multiple sets of random templates can be more effective to prevent collection, but for intermediate collectors, there are ways to break through, your template number is limited, people fancy your whole station resources, will be willing to a little bit of kung Fu. Anti-capture characters appear weaker, because those characters in order to not be displayed on the page, it is necessary through css,js and other methods to deal with, leaving traces.

Flash anti-capture possibilities

1, first flash can be clearly displayed Chinese characters, can be implemented on the Web page text and pictures show the same effect, and can use simple CSS. In fact this is enough, because we are not the entire Web using Flash, but in the article content display area display Flash,flash load the content of the article, so the requirements for the style is not high.

2, the transfer between Flash and php,asp,jsp. From flash can load external text files (including static web files, CSS files), any network programming language and flash interoperability is not a problem, because they return the HTML format text file. And can realize the transfer of parameters, so in reading database and so on completely feasible

Search engine included problems

If the text is all displayed in Flash, the search engine can not get the content of the article. Obviously we have to add a div that doesn't appear in the article page for the content of the article, such as

article content, and then #content:display:none in CSS; The content of this article is not waiting for someone to collect it? No, since this area is to search engines, not to the user, then in addition to the article should be processed, so that it does not read the value, but covers the content of the article. For example: The irregular interception of some content from the original text into the article, for the search engine, not much impact, and if someone else to collect the use of words is a messy text.

Server load Issues

Does that mean you can't generate static? Or does the flash in the static article still read the contents of the database dynamically? As I said earlier, flash can load external files, we use the content stored text, do not use static pages, and using pseudo static, because the article page does not need to read the database ( In the case where only the article is invoked. Invoke a processed TXT file (for search engines) and insert an IFRAME flash in the article area for easy scrolling display, while Flash calls another real text file for the content of the article.

Security

Processed TXT file, we are not worried because of its not much reading value. That flash called the text file is the focus of attention, but also I in the process to grasp the small link. My idea now is to encrypt the filename, flash through the article ID number to get a password, decrypt the filename. But Flash can also be decompile, get decryption code, the whole guard nearly ineffective, and even to the people convenient, of course, the General Collection tool is unable to collect. This is one of the driving forces of my writing this article, I hope that more people think about a better way. (Note: Flash through the ID number to take the file name password process, through a PHP file to read the database, we can build a separate data table to store this data, the server is better.) For this file, access to external Web sites is prohibited via PHP. htaccess. The flash file can be properly invoked as long as it is inaccessible to others. )

Basic methods

For example, an article page (where the address is only for example, and cannot be accessed)/article/54239.html in the article area call flash:content.swf?id=54239 so flash within a frame by calling Content.php?id= 54239 from the database to get a set of password Chbbguiolhflash decrypted address/html/080211/54239_uiyhii900.db (text file), display Web pages.

In fact, the direct call to the text file, and the text folder under all the files prohibit external access to achieve the purpose, that is, you can save the reading database and other cryptographic decryption process. Encryption and decryption process is to provide a relatively broad and practical ideas, we can completely according to their own ideas to deal with.

Summary

From the above, flash used to prevent collection can be fully competent. For technology development, there is no high barrier, are some basic applications.

This is a long time to consider the results of the first to Webmaster Network (), the original intention is for Microelectronics China (http://www.weidianzi.com) new station of the collection to prepare, because the above will be a lot of professional industry articles.

Expect to have friends to develop faster, and I hope you can further discuss with me, my address is: http://www.qinyi.net

In addition, although I have been involved in the network for many years, and did not send any articles. One is my laziness, second, some netizens will abuse the article author.

China has been advocating and different from ancient times, writing articles is not for everyone to agree, but to express their views, even the "garbage", but also want to see the author played so many words to give a respect: do not agree to put forward their views, want to curse the simply do not comment (please do not say no freedom of speech, I just suggest).

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.