Release time: 27 November 2005
Article author: Zhai Zhenkai (Xiao Qi)
Communication method:
Personal website: http://www.xiaoqi.net
Technical site: http://www.iisvs.net
Commercial website: http://www.iisvs.com
QQ: 5335386622336848
About this article:
In the spirit of Internet sharingism, this article is featured for newbies in website building. It is better to teach people how to fish than to teach people how to fish. What this article talks about is only the methods and principles.
I hope you can get some help and inspiration from this article after reading this article.
This article uses a large number of examples to introduce the principle of how dynamic websites generate static pages from the perspective of an ASP programmer, and then collects program developers.
From the perspective of Xiangxiang, we introduced the principles and skills prevention strategies of website data collection.
Regarding the website generating static pages, in order to make it easier for readers of this article to understand, the article lists many commonly used methods of generating static pages, among which
A lot of example code is explained.
Regarding the attack and defense of website data collection, the author himself is a developer of the collection program. At the same time, the author has also collected and studied a variety of collection programs, listing the current ones.
There are several popular anti-collection strategies in China, and a simple and objective analysis and evaluation of each strategy is made, hoping to provide some help to the majority of webmasters. This chapter is also
The purpose of dedicating the author's original anti-collection method is to let everyone understand that it is feasible and effective to prevent collection and not search engines.
Statement: I hope that when you reprint, you will not remove the copyright of the original author. Thank you for your cooperation.
Due to my limited writing skills, I would like to give you more as to what I write. If you want to criticize or comment, please add me to QQ.
At present, many people have begun to pay attention to dynamic page generation of HTML pages, but the problem of choosing which method to generate HTML and prevent collection but not search engines is often troubled.
Home. Solving this problem is the reason for this article.
First, Xiang will explain in detail several commonly used methods to generate HTML:
There are only two main steps to generate HTML methods:
1. Get the content of the html file to be generated
2. Save the obtained html file content as an html file
What I mainly explain here is the first step: how to get the contents of the html file to be generated:
Currently, there are several common methods to obtain the content of html files:
1.
str="<html tag>content</html tag>"
str=str&"<html tag>content</html tag><html tag>database read content....</html tag>..."
This method is to write the html content to be generated in the script, which is not convenient to preview the content of the generated page, and cannot visualize the layout of the page. It will be more convenient when changing the html template
More complicated.
There are many people using this method, but I feel that this method is the most inconvenient.
2.
Create a separate HTML template page, dynamic content is marked with specific characters (for example: someone uses $title$ to mark the web page title), use ADODB.Stream or