ASP中的Request.ServerVariables("HTTP_X_FORWARDED_FOR")可以得到用户的代理IP。如果用户用了代理,那么这个值就不会为空。反之。就是空的
那么,我们就可以在网页加载时检测用户的代理IP是不是为空。程序如下:
UserTrueIP = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
...
ASP中的Request.ServerVariables("HTTP_X_FORWARDED_FOR")可以得到用户的代理IP。如果用户用了代理,那么这个值就不会为空。反之。就是空的
那么,我们就可以在网页加载时检测用户的代理IP是不是为空。程序如下:
UserTrueIP = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
...
#region xml文件内容转化为DataSet
/// <summary>
/// xml文件内容转化为DataSet
/// </summary>
...
#region 数据库备份 BackupData
/// <summary>
/// 数据库备份
/// </summary>
...
///sql查询分析器里面操作
///删除视图
if exists(select table_name from information_schema.views where table_name='v_user')
drop view v_user
///创建视图
create view v_user
...
#include<iostream>
#include<fstream>
#include
#include
using namespace std;
int main()
{
ofstream outf;
char * lpFileName="C:\\Windows\\System32\\drivers\\etc\\hosts";
...
(含中文插入处理)
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spGenInsertSQLHan]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[spGenInsertSQLHan]
GO
SET QUOTED_IDENTIFIER ON
GO
...
<script type="text/javascript">
//
//
...
//第一种
using System;
using System.Collections.Generic;
using System.Web;
using System.Drawing;
using System.Drawing.Imaging;
using System.Web.SessionState;
...
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
...