Anti-Theft chain | anti-theft chain with ASP hidden file path to achieve anti-theft chain
If we know the actual path of a static file such as: Http://www.xx.com/download/51windows.pdf, if the server does not have a special limit set, we can
Function 1, DateTime digital type
System.DateTime currenttime=new System.DateTime ();;
1.1 to take the current month and the day seconds
Currenttime=system.datetime.now;;
1.2 Take as the year before last
int year =currenttime.year;;
1.3 Take
Dim Ip,ipstring,visitip' The IP address to be bannedIpstring= "|195.225.177.34|195.225.177.137|72.232.250.10|"' Get IP AddressIP = Request.ServerVariables ("Http_x_forwarded_for")If IP = "" ThenIP = Request.ServerVariables ("REMOTE_ADDR")End
Pagination | display Display form
ID Name
1 Juliet
2 Cristine
3 Boy
4 Girl
>> first previous next last page: 1/4 4 record/page Total records: 13
Code:
Dim rs
Dim sql
Msg_per_page = 4 ' defines the number of record bars per page
Set rs =
Use the ASP to minimize server-side workloads, so you should use JavaScript more, and submit all submitted fields to the server using JavaScript or VBScript, so that the server does not have to be tested again. And at the time of submission, someone
Program | resolution | client | Display requires the latest browscap.ini, or it will cause new browsers such as IE5,NC46 to run correctly.
detectres.asp
Set BC = Server.CreateObject ("MSWC.") BrowserType ")
Brname=bc.browser
Brver=bc.version
%>
request| Objects | tutorials | built-in objects
System learning ASP, is first from the ASP's several large built-in objects started. Generally called Five objects: Request, Response, Server, Session, application. Today, let's look at the request
fso| Beginners | example
Save the following code in an ASP file to facilitate the management of files on the serverhttp://bbs.asp2004.net production: Small Gray qq:103895Action=request. QueryString ("Action")Temp=split (Request. ServerVariables
Solution | Question 1. How to minimize, Maximize, close windows
Answer:
2. How to Still page cache
Answer: HTM Web page
or
ASP Web page
Response.expires=-1
Response.expiresabsolute=now ()-1
Response.cachecontrol= "No-cache"
PHP Web
Online IP Address
Features: Displays the current number of online Web pages and IP addresses.
Methods: The current Web page online IP address into the people.asp, every one-minute automatic refresh, used to calculate the current page number of
Use Request.ServerVariables ("REMOTE_ADDR") in the ASP to obtain the IP address of the client, but if the client is using a proxy server for access, then the IP address of the proxy server is taken, not the true client IP address. To obtain a client'
Show
"to root path format dim stempurl stempurl = URL if Left (Stempurl, 1) = "/" Then relativepath2rootpath = Stempurl end If dim swebeditorpath Swebeditorpath = Request.ServerVariables ("Script_name") swebeditorpath = Left
Server native Ip
Server name
Server Ip
Server Port
Server Time
IIS version
Script Timeout Time
This file path
Server CPU number
Server Interpretation engine
Server operating system
1, look at the website log
2, the ASP can use Global.asa to record the visitor's http_user_agent
3, PHP and ASP can be in the specific page by placing code will http_user_agent save the way to see the spider scan information.
ASP Sample code:
Site
Sometimes buy a virtual space, enough to put n sites, generally as long as the corresponding domain name of each site are tied to the IP of this virtual space, and then use the following code can achieve the effectLet's take the example of
Programming | Advanced 7.2.4 Client Script errors
So far, we have learned about the errors from the ASP. However, ASP is often used to create Web pages that contain client-side scripting. If the
On the client side, after the ASP processes this page,
For a long time did not write ASP, this time to write a message board really feel a little difficult, the competition has written a whole day, haha.There is nothing else to write, the use of three-layer structure (do not know, the original
Application|session| object in a published series of articles, we have discussed two ASP objects: application objects and Session objects, so we have access to the collections, methods, and application provided by the objects and the session object.
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.