我的页面被攻击了!!!求人看看!
using System;using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class _default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
bingData(0);
}
}
protected void bingData(int PageCount)
{
DataTable UserCodeDT = MyWeb.MyData.GetDBList("News");
this.GridView1.DataSource = UserCodeDT;
this.GridView1.DataBind();
}
}
这个是首页!应该没有什么问题吧
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class down : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
this.Label3.Visible = false;
this.HyperLink2.Visible = false;
this.Label4.Visible = false;
this.HyperLink3.Visible = false;
}
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
string[,] Arr = new string[1, 4];
Arr[0, 0] = "Diqu";
Arr[0, 1] = this.DropDownList1.SelectedItem.Text.ToString().Trim().Replace("'", "''");
Arr[0, 2] = "1";
Arr[0, 3] = "等于";
DataTable UserCodeDT = MyWeb.MyData.GetDBList("Down", Arr, "Time", "1");
this.GridView1.DataSource = UserCodeDT;
this.GridView1.DataBind();
}
}
这个是下载页
如果这些都没有什么问题的,会是哪些地方出问题了呢? 带宽占99%,苦恼啊~~~~~ --------------------编程问答-------------------- --------------------编程问答-------------------- 可能是ddos攻击,消耗你的带宽,ddos攻击跟代码关系不是很大,它的原理是通过伪造源ip向服务器发送数据包导致产生很多半连接从而让带宽占满使正常用户无法访问。
没办法,只能用硬件防火墙来抵挡一部分攻击流量 --------------------编程问答-------------------- 问问题时首先要把你遇到的问题描述一下. --------------------编程问答-------------------- 看你的服务器日志吗?
看看是下载的人增多了?还是被人盗链了,或者被人DDOS了 --------------------编程问答-------------------- 不明白,帮顶下!~!~ --------------------编程问答-------------------- 呵呵,还有这事呀,文本框要房脚本的哦
过滤脚本信息,下个那样的方法过滤掉文本中的脚本标签就o了 --------------------编程问答-------------------- LZ是不是GRID显示数据过多~
还有做一下前端的负载均衡看看 --------------------编程问答-------------------- 路过, 看看...
--------------------编程问答-------------------- JF`````支持 --------------------编程问答-------------------- 打酱油的 --------------------编程问答-------------------- 设置一下防盗链啊 --------------------编程问答--------------------
说的很好啊,学习了
补充:.NET技术 , ASP.NET