一个下载网站,只有经过登陆验证才能下载,如何不被盗链?
解决方案 »
- 正则表达式求解释!!!验证手机号
- ,net的MVC的高手帮看一下,谢谢了!
- ""与null真害人
- 由于目标机器积极拒绝,无法连接。 192.168.1.242:8086
- DataGrid中数据导入到excel中后有列是链接word,怎样在excel打开此word
- 字符串插入的问题
- 有谁知道用asp.net做财务管理软件的凭证要怎么做?散分!
- 已经把数据导成excel后,如何让用户点击一按钮过后出现“保存文件“的对话框???
- 如何嵌套其他网站html到我的网站里,不想用iframe。
- web服务为何不能对服务器端的数据库进行写操作?
- 画面的动态绘制问题,高分求助,问题解决了再加分
- 急,在线等!asp.net网页访问windowsform控件
代码略
BeginRequest能对rar,zip等文件有作用吗?我的意思是,比如一个会员登陆后他就可以得到下载地址,比如http://www.aaa.com/download/1.rar,他把这个地址分发给其他人,我怎么阻止这种情况?
现已作了尝试,代码如下:// Content.aspx.cs ///////////////////////////////////////////////////////
public class Content : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
Session.Timeout = 60;
Response.Write("欢迎 . . .<br>\n");
Response.Flush();
Application[Session.SessionID] = Response;
System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
}
}
// Send.aspx.cs //////////////////////////////////////////////////////////
public class Send : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Button ButtonSend;
protected System.Web.UI.WebControls.TextBox TextBox1;
private void ButtonSend_Click(object sender, System.EventArgs e)
{
foreach(string name in Application.AllKeys)
{
HttpResponse Response = Application[name] as HttpResponse;
if(Response!=null && Response.IsClientConnected)
{
Response.Write(TextBox1.Text + "<br>\n");
Response.Flush();
}
else
{
Application.Remove(name);
}
}
}
} 可以聊天,但发现一大问题:同时连接的用户被限制在50个左右,再多的就连不上了,并且会导致其他用户也陷于停滞状态。
请高手答疑解惑,还可另开贴给分!
现已作了尝试,代码如下:// Content.aspx.cs ///////////////////////////////////////////////////////
public class Content : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
Session.Timeout = 60;
Response.Write("欢迎 . . .<br>\n");
Response.Flush();
Application[Session.SessionID] = Response;
System.Threading.Thread.Sleep(System.Threading.Timeout.Infinite);
}
}
// Send.aspx.cs //////////////////////////////////////////////////////////
public class Send : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Button ButtonSend;
protected System.Web.UI.WebControls.TextBox TextBox1;
private void ButtonSend_Click(object sender, System.EventArgs e)
{
foreach(string name in Application.AllKeys)
{
HttpResponse Response = Application[name] as HttpResponse;
if(Response!=null && Response.IsClientConnected)
{
Response.Write(TextBox1.Text + "<br>\n");
Response.Flush();
}
else
{
Application.Remove(name);
}
}
}
} 可以聊天,但发现一大问题:同时连接的用户被限制在50个左右,再多的就连不上了,并且会导致其他用户也陷于停滞状态。
请高手答疑解惑,还可另开贴给分!
但是我的意思是会员登陆,非会员不能登陆这些都已经没有问题了。
现在的问题是会员登陆后,可以得到下载地址,比如http://www.aaa.com/download/1.rar,现在他把这个下载地址给第3者。我的要求是如何阻止这个第3者直接通过这个下载地址下载文件?
如果没有,就不输出这个文件