Second-level domain principles and procedures, you can apply for [normal framework secondary domain name]
To achieve the effect of a second-level name, the conditions and procedures must be taken:
1. There must be a top-level domain name, and this domain name must be parsed well and pointed well.
2. There must be an independent server. The general resolved domain name points to the server.
3. Create an empty host header web site in IIS on the server.
4. Set the default page to your second machine parsing program (for example: freedns.asp)
5. Second-level domain name series programs (including application page: shenqing.htm, add page add.asp, parse page,)
Advantages of this program:
a. Can limit the sensitive words of domain names applied for, such as hacker, www, sex, china, etc.
b. Illegal words that can be restricted from applying for domain names, such as:! ·#¥%…—*()——? '"/wait
c, Only one domain name can be applied for per address.
d. Limit the length of the domain name applied.
e. If no one applies for the domain name the user visits, it will be transferred to a specific page. In this example, http://www.51bxg.com/miss.html
f, Apply for the domain name: ***.yourname.com. It can support access to two domain names: http://***.yourname.com and http://www.***.youranme.com at the same time.
Here is the series of program code:
shenqing.htm
<form action=adddns.asp method=post name=Frm onSubmit=return check_input()> <br> <font color=red>Add * as required</font> <br>
The domain name you want to register:
http://<input name=nowurl size=12
style= BORDER-BOTTOM: 1px double; BORDER-LEFT: 1px double; BORDER-RIGHT: 1px double; BORDER-TOP: 1px double; COLOR: #000000; FONT-SIZE: 9pt>.51bxg.com
<br>
Your actual website address:
<input name=tourl size=12
style= BORDER-BOTTOM: 1px double; BORDER-LEFT: 1px double; BORDER-RIGHT: 1px double; BORDER-TOP: 1px double; COLOR: #000000; FONT-SIZE: 9pt>
The title you requested to display:
<input name=company size=12
style= BORDER-BOTTOM: 1px double; BORDER-LEFT: 1px double; BORDER-RIGHT: 1px double; BORDER-TOP: 1px double; COLOR: #000000; FONT-SIZE: 9pt>
<br>
<input type=submit name=Submit value= Submit information style=border:1px double rgb(88,88,88);font:9pt>
<input type=reset name=Reset value= Refill in style=border:1px double rgb(88,88,88);font:9pt>
</p>
</form>
Add record page add.asp
<!--#include file=char.inc-->
<!--#include file=conn.asp-->
<%
uID=request.cookies(*****)
%>
<%
dim nowurl,tourl,company,along,pbkey
nowurl=trim(request.form(nowurl))+.51bxg.com
nurl=trim(request.form(nowurl))
tourl=trim(request.form(tourl))
company=trim(request.form(company))
Along=20
pbkey=www,sex,admin,w,ww,www,www,hacker,hack