1. datetime numeric typeSystem. datetime currenttime = new system. datetime ();1.1 take the current year, month, day, hour, minute, secondCurrenttime = system. datetime. now;1.2 get current yearInt year = currenttime. Year;1.3 take the current
Public String getclientip ()
{
String suserip = string. empty;
If (request. servervariables ["http_via"]! = NULL)
{
// Obtain the real IP address of the remote user through the Proxy Server
Suserip = request. servervariables ["http_x_forwarded_for"].
Without knowing it, the LM gang saw that the black anti-DDOS service had already been in the spring and autumn, and the period had not fallen. After so long of hard work, you can start playing with one or two tricks. After reading the article
1. Use isapi_rewrite for Dynamic Link rewriting of HTML static URL. Isapi_rewrite is a DLL component, and re_write is a module in IIS. This filter maps Dynamic Web URLs to static Web URLs through regular expressions. If news. asp? Id = 95 convert it
Pack the file into an XML file package. It is an ASP tool that can be unwrapped!
Package all the website source code into the XML file, generate the updata. xml file, and upload the XML file to the space.Then, release all the files through the
If your query statement is select * from Admin where username = ''' "& user &" ''' and Password = ''' "& PWD &"'' ''"
Then, if my user name is: 1 ''' or ''' 1 ''' = ''' 1
Then, your query statement will become:
Select * from Admin where username = ''
For example:
If your query statement is select * from Admin where username = "& user &" and Password = "& PWD &""
Then, if my user name is: 1 or 1 = 1
Then, your query statement will become:
Select * from Admin where username = 1 or 1 = 1 and
1. datetime numeric type
System. datetime currenttime = new system. datetime ();
1.1 take the current year, month, day, hour, minute, second
Currenttime = system. datetime. now;
1.2 get current year
Int year = currenttime. Year;
1.3 get current
Select case request ("action ")'Put it in the library first, and then generate the page'Add start ---------------------------------------------------------------------------------Case "add"Title = request ("title ")Content = request ("content
These days, the SQL injection vulnerability has hurt me, and the online code is too complicated and difficult. Finally, I found the omnipotent anti-injection code and shared it. The operation is easy to use. You only need to include or put it in
Copy codeThe Code is as follows: the cookie Page code is recorded during login
// a 32-bit md5 encrypted file must be called. This file is everywhere and I will not provide it
Dim Username, Password, Question, Answer, Expires, Verify
Username =
1. Disable the specified IP address to prevent website attacks and perform the following operations:
Copy codeThe Code is as follows: Dim IP, IPString, VisitIP
'Set IP addresses separated by' |'
IPString = "| 192.168.0.42 | 192.168.0.43 |"
'Get IP
1. DateTime numeric typeSystem. DateTime currentTime = new System. DateTime ();1.1 take the current year, month, day, hour, minute, secondCurrentTime = System. DateTime. Now;1.2 get current yearInt Year = currentTime. Year;1.3 take the current
Copy codeThe Code is as follows:
'================================================ ======
'Kesioncmsv4. 0 the second-level domain name of the personal space is transferred to the handler.
'================================================ ======
'**
These days, the SQL injection vulnerability has hurt me, and the online code is too complicated and difficult. Finally, I found the omnipotent anti-injection code and shared it. The operation is easy to use. You only need to include or put it in
1. DateTime numeric typeSystem. DateTime currentTime = new System. DateTime ();
1.1 take the current year, month, day, hour, minute, second
CurrentTime = System. DateTime. Now;
1.2 get current year
Int Year = currentTime. Year;
1.3 take the current
Asp download anti-leech code
First:
Finally, I made a anti-leech measure for the download system and made the following code in the header of the download page. The relevant code is as follows:
Copy codeThe Code is as follows: From_url = Cstr
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.