悉尼Strathfield 全新公寓 | Meriton悉尼最著名的城市公寓,价格最实惠,详情>>> | ****Casino网络辅导课程***** | 0.75%*低於浮动房屋贷款利率 | Google 搜索 | 澳洲中文网首页 | 澳洲地产网
成人聊天网
澳洲悉尼高尔夫训练
澳洲留学移民 专业小提琴教学 澳洲移民课程
便宜购物 澳洲味千拉面 澳大利亚墨尔本学校 澳大利亚海运
澳洲楼盘 澳洲地产 ABC集团 澳洲地产网


 
标题: help: download page
j2lane
Rank: 2Rank: 2



澳洲幼稚园
等级: 5 - 驾轻就熟
生命值 : 0 / 112
魔力值 : 15 / 861
经验值 : 51 %

UID: 58103
精华: 0
积分: 45
帖子: 45
威望: 45
澳币: 0
现金: 149
存款: 0
魅力: 7
阅读权限: 10
注册: 2006-4-24
状态:
发表于 2006-5-4 10:28  资料  短消息  加为好友 
help: download page



ABC环球集团 | Meriton,悉尼最著名的城市公寓开发商 | 澳洲免费贷款在线申请 | 澳美留学移民 | 澳洲下一位百万富翁 | 悉尼Strathfield 一房全新公寓
----------------------------------------------------------------------------------------------------------------------------------------------------------
Say you have a page can be visited at www.mycom.com/downpage.php that contains following code:

please <a href="mysoftware.zip">click</a> to download the software

obviousely if user clicks on the word 'click',mysoftware.zip will be downloaded to local harddisk, right? however, for smart users, they may know that the zip file stored at same directory/folder as downpage.php, so if they put the following into browser's address bar :

www.mycom.com/mysoftware.zip

what will happen? they will get your file anyway. what i want is, if some guys type in the above url into address bar, it pops up a window says

you did not pay me 5 cents, you can not download it.

or just simply ban it, redirect to the downloadpage.php, let those people give me some information or 5 cents, and they they can download it.

anyone who knows how to do that?

顶部
[广告] 悉尼RHODES豪华雅柏文发展商大减价 | 悉尼Carlingford 花园式雅柏文全新推出 | 全澳最优惠的贷款利率,不成功不收费,在线预批,保证24小时回复
城市童话 (╰☆悉尼☆)
Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9




社区区长
等级: 79 -
生命值 : 2949 / 2949
魔力值 : 6421 / 18079
经验值 : 66 %

UID: 10239
精华: 54
积分: 38262
帖子: 19265
威望: 38262
澳币: 40
现金: 170336
存款: 2147483647
魅力: 4726
阅读权限: 200
注册: 2005-10-10
状态:
荣誉勋章
★★荣誉勋章★★
发表于 2006-5-4 14:36  资料  短消息  加为好友  添加 城市童话 为MSN好友 通过MSN和 城市童话 交谈 QQ
This is the coding skill. or you can use redirect function to do it by using this:

<?php
header("Location: http://www.skyaus.com/");
?>

put this code into your php page





顶部
[广告] 悉尼RHODES豪华雅柏文发展商大减价 | 悉尼Carlingford 花园式雅柏文全新推出 | 全澳最优惠的贷款利率,不成功不收费,在线预批,保证24小时回复
j2lane
Rank: 2Rank: 2



澳洲幼稚园
等级: 5 - 驾轻就熟
生命值 : 0 / 112
魔力值 : 15 / 861
经验值 : 51 %

UID: 58103
精华: 0
积分: 45
帖子: 45
威望: 45
澳币: 0
现金: 149
存款: 0
魅力: 7
阅读权限: 10
注册: 2006-4-24
状态:
发表于 2006-5-4 15:52  资料  短消息  加为好友 


QUOTE:
原帖由 城市童话 于 2006-5-4 13:36 发表
This is the coding skill. or you can use redirect function to do it by using this:

<?php
header("Location: http://www.skyaus.com/");
?>

put this code into your php page


hehe

sorry u didnt get my words.

say if i put the file mysoftware.zip on server, and somehow, people know the exactly the directory where i put it in, for example, i put it in the root directory same as the index.html/php file, so the user can download it by type in the address bar following letters

http://www.myhost.com/mysoftware.zip

and download it. how can i do to avoiding people access mysoftware.zip directly?  say, if my server notices that mysoftware.zip is being accessed not from the download page, for example the referer url is not on my allowed list. or other case, how to stop giving the file to them?

hope i explained it clearly




[ 本帖最后由 j2lane 于 2006-5-4 14:54 编辑 ]

顶部
[广告] 悉尼RHODES豪华雅柏文发展商大减价 | 悉尼Carlingford 花园式雅柏文全新推出 | 全澳最优惠的贷款利率,不成功不收费,在线预批,保证24小时回复
夜灵乄蝎 (B&G)
Rank: 3Rank: 3Rank: 3
夜灵乄蝎


澳洲高中生
等级: 23 - 炉火纯青
生命值 : 42 / 558
魔力值 : 218 / 3814
经验值 : 32 %

UID: 79274
精华: 0
积分: 1967
帖子: 654
威望: 1967
澳币: 0
现金: 1442
存款: 400
魅力: 14
阅读权限: 70
注册: 2006-8-1
来自: SYDNEY
状态:
发表于 2007-3-14 17:55  资料  短消息  加为好友 
so have you resolved it yet?





夜灵乄蝎
*&%@!)(*&^%$#@!
顶部
[广告] 悉尼RHODES豪华雅柏文发展商大减价 | 悉尼Carlingford 花园式雅柏文全新推出 | 全澳最优惠的贷款利率,不成功不收费,在线预批,保证24小时回复
viggy (星座小公主)
Rank: 3Rank: 3Rank: 3


澳洲中学生
等级: 14 - 融会贯通
生命值 : 13 / 334
魔力值 : 79 / 1521
经验值 : 39 %

UID: 100498
精华: 1
积分: 449
帖子: 237
威望: 449
澳币: 0
现金: 923
存款: 0
魅力: 7
阅读权限: 30
注册: 2007-5-14
来自: 广州
状态:
荣誉勋章
★★杀人勋章★★ ★夜夜师门★
发表于 2007-7-6 13:06  资料  短消息  加为好友 
why dont you define some members and levels and give an accessLevel to your members, if its a member and is VIP, then put the links on it, others, just hide the link. like
<%
String users = "1234";
String accessLevel ="VIP";

if ( users !=null && users.equals("1234") && accessLevel != null && accessLevel.equals("VIP")) {
%>
   <a href="/mysoftware.zip">download it</a>
<% } else { %>
   sorry you dont have permission to download it.
<% } %>

and you might need to check whether the member is login or not? and set this attribute into your session?

and also you might need to encode your links?

well, you need lots of code for doing it...

and also on the serverside you'd better put relative path to your page, for example /mysoftware.zip instead of mysoftware.zip then wherever you put your page on your server it wont gets 404 page not found error.

but i still think your question is too general, like do you want us to help you with the coding or with the logic? or something else, if you can provide more details, maybe more ppl can help you through,  not sure whether it make sense to you, the above are jsp codes, and very draft examples.

顶部
[广告] 悉尼RHODES豪华雅柏文发展商大减价 | 悉尼Carlingford 花园式雅柏文全新推出 | 全澳最优惠的贷款利率,不成功不收费,在线预批,保证24小时回复
markyao (mark)
Rank: 2Rank: 2



澳洲小学生
等级: 11 - 出类拔萃
生命值 : 9 / 270
魔力值 : 54 / 1001
经验值 : 82 %

UID: 109761
精华: 0
积分: 198
帖子: 163
威望: 198
澳币: 0
现金: 16
存款: 859
魅力: 17
阅读权限: 20
注册: 2007-8-27
来自: 西安,深圳
状态:
发表于 2008-1-20 00:15  资料  主页 短消息  加为好友  QQ
原来是 天书





02-95803223 0415845480(Optus)
TPG代理 150G/$70点击申请
电脑组装/维修/配件/存储卡/移动硬盘/笔记本电源/蓝牙GPS/ DDR内存/R4/EDGE,100G免费电影等你copy
QQ:981678797  MSN:yaozhanmin@hotmail.com
www.kingmedia.com.au
Shop 3, 7 Barratt St, Hurstville, NSW 2220
顶部
[广告] 悉尼RHODES豪华雅柏文发展商大减价 | 悉尼Carlingford 花园式雅柏文全新推出 | 全澳最优惠的贷款利率,不成功不收费,在线预批,保证24小时回复
kr2000
Rank: 2Rank: 2



澳洲幼稚园
等级: 4 - 略有小成
生命值 : 0 / 85
魔力值 : 10 / 446
经验值 : 40 %

UID: 91148
精华: 0
积分: 32
帖子: 32
威望: 32
澳币: 0
现金: 96
存款: 0
魅力: 0
阅读权限: 10
注册: 2007-2-16
状态:
发表于 2008-1-29 14:25  资料  短消息  加为好友 
用.htaccess控制文件夹属性,别人就不能直接打开文件了

顶部
[广告] 悉尼RHODES豪华雅柏文发展商大减价 | 悉尼Carlingford 花园式雅柏文全新推出 | 全澳最优惠的贷款利率,不成功不收费,在线预批,保证24小时回复
 


澳大利亚免费贷款
澳洲楼盘

当前时区 GMT+11, 现在时间是 2008-12-2 13:51

澳大利亚中文网 Powered by Discuz! 5.5.0 © 2001-2007
Processed in 0.049102 second(s), 6 queries , Gzip enabled

清除 Cookies - 联系我们 - 澳洲中文网 - Archiver