Recommended: Asp connection to SQLServer database implementation code This article introduces the code of using asp to connect to SQLServer database instance. There are three connection methods: establishing a connection through ODBC DSN and establishing a connection through oledb and establishing a connection through driver. Let’s take a look at the first one. Establish a connection through driver Establish a connection through driver Establish a connection through driver Establish a page and database connection through driver, and there is no need to create an ODBC DSN
General programs have the command to obtain the user's IP address, but there are two types of websites we visit, one is an ordinary user like us, and the other is a user who uses a proxy IP to surf the Internet. I will introduce it below.
The easiest way to get the user's IP address in asp is to use
However, if the user uses the proxy server IP address, it is wrong, but we can use
As a result, we can operate the following two methods of obtaining IPs above.
The above is just a simple judgment method. We may encounter more situations in actual applications. Let’s see a good example below
This way, you can almost get the user's real IP address, but you can't save all the agents and get it. But everyone uses the above method.
If you have friends who use asp.net, please refer to the following method to get it
Share: Regular expression filtering html code function in asp HTML tags are considered complex things. We generally cannot filter them. Now we use regular rules to operate them. Students who need to learn can refer to this article. How to use