停止热链接到特定文件&保持柜台 [英] Stop hotlinking to a specific file & keeping a counter

查看:61
本文介绍了停止热链接到特定文件&保持柜台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何停止热链接到特定文件,我希望它将其重定向到PHP链接,所以我

可以监控下载次数。


这是我的网站下载页面:
http://www.adhal.org/software/downloads.htm


这里是softpedia直接连接到我的文件并绕过计数器php。
http:// www。 softpedia.com/get/File-ma.../HashNET.shtml


我是新来的,所以请原谅无知。我计划迟早读它。 :)


我见过使用.htaccess的例子,但它处理的是哑剧。我想实际上停止

链接到我想要重定向到另一个指定链接的特定文件(我的PHP计数器链接)。


感谢您花时间看这个


-

Adhal免费软件
http://www.adhal.org

推荐答案

6月25日15:05,Adhal < f ... @ email.comwrote:
On 25 Jun, 15:05, Adhal <f...@email.comwrote:



* *如何停止热链接到特定文件,以及我希望它将它重定向到PHP链接,所以我

可以监控下载次数。


这是我的网站下载页面: http://www.adhal.org/software/downloads.htm


这里是softpedia直接连接到我的文件并绕过计数器php。 http://www.softpedia.com/get/File-ma.../HashNET.shtml


我是新手,所以请原谅无知。我计划很快读完它。 :)


我见过使用.htaccess的例子,但它处理的是哑剧。我想实际上停止

链接到我想要重定向到另一个指定链接的特定文件(我的PHP计数器链接)。


感谢您花时间看这个


-

Adhal Freewarehttp://www.adhal.org
Hi,
* * How can I stop hotlinking to a specific file, and I want it to redirect it to a PHP link so I
can monitor the number of downloads.

Here is my site with the download page:http://www.adhal.org/software/downloads.htm

And here is softpedia directly connecting to my file and bypassing the counter php.http://www.softpedia.com/get/File-ma.../HashNET.shtml

I am new to this, so excuse the ignorance. I do plan to read on it sooneror later. :)

I have seen examples of it using the .htaccess, but it deals with mimes. I want actually stop
hotlinking to a specific file which I want to redirect to another specified link (My PHP Counter link).

Thanks for taking time to look a this

--
Adhal Freewarehttp://www.adhal.org



您可以更改文件的位置并使用.htaccess将当前文件名映射到您的php脚本,这将在最后,

提供真实文件作为有效载荷。

You could change the location of your file and use .htaccess to map
the current file name to your php script, which would at its end,
deliver the real file as payload.


> -
>--

> Adhal Freewarehttp ://www.adhal.org
>Adhal Freewarehttp://www.adhal.org



您可以更改文件的位置并使用.htaccess映射

当前文件名到您的PHP脚本,它将在最后,

提供真实文件作为有效负载。


You could change the location of your file and use .htaccess to map
the current file name to your php script, which would at its end,
deliver the real file as payload.



谢谢,但是咳咳,我不知道该怎么做。 URLBar会显示文件的实际位置吗?

实际上我更喜欢它,如果HTTP_REFERER不是来自

http://www.adhal.org/software/downloads.htm


http://www.adhal.org/ccount /click.php?id=1


然后将其重定向到

http://www.adhal.org/ccount/click.php?id=1


所以我不必担心他们是否真的可以访问正确的文件路径。我给了softpedia

我的PHP链接,但是他们直接连接到我的文件。


或者更好的方法是监控所有文件的cgi脚本访问。那会很酷,但是如果可能的话,我没有

线索。我是网络创作的新手,并试图感受我的方式。

Thanks but ahem, I don''t know how to that. Would URLBar display the actual location of the file?
In truth I would prefer it, if the HTTP_REFERER is not from

http://www.adhal.org/software/downloads.htm
or
http://www.adhal.org/ccount/click.php?id=1

Then redirect it to

http://www.adhal.org/ccount/click.php?id=1

So I don''t have to worry if they actually get access to the correct file path. I am I gave softpedia
my PHP link, but they connected directly to my file.

Or a better way is a cgi-script that monitors all file access. That would be cool, but I have no
clue if it is possible. I am new to web creation and trying to feel my way around.


约翰史密斯也是我。我应该删除那张卡

-

Adhal免费软件
http://www.adhal.org
John Smith is the me also. I should remove that card
--
Adhal Freeware
http://www.adhal.org


这篇关于停止热链接到特定文件&amp;保持柜台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆