![]() |
Hot linking blocking in attatchment.php?
I've been thinking about looking into this... If anybodies already done it please hook me up with it :) I've been using the VB attatchment system for all of my articles and now the article images are getting hotlinked fairly often.
|
Quote:
|
PHP Code:
This only works of the browser is providing referer. Then echo can be totally removed. |
@alan92rttt
This will not work, as the user can set the referrer to any value he wants. |
Quote:
.htaccess does a pretty good job though. |
Quote:
|
Using a .htaccess file to prevent hotlinking works on the same principle as the code posted above. Because of the session-less design of HTTP, there are really only 2 ways you can prevent hotlinking. 1 - referrer url or 2 - user authentication.
|
.htaccess won't protect attachments though, will it? It won't keep someone from using a img src tag to post an attachment from your Forum to where ever they want to. How can that be done?
|
All times are GMT. The time now is 06:19 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|