The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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.
|
#2
|
||||
|
||||
Quote:
|
#3
|
|||
|
|||
PHP Code:
This only works of the browser is providing referer. Then echo can be totally removed. |
#4
|
||||
|
||||
@alan92rttt
This will not work, as the user can set the referrer to any value he wants. |
#5
|
|||
|
|||
Quote:
.htaccess does a pretty good job though. |
#6
|
||||
|
||||
Quote:
|
#7
|
||||
|
||||
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.
|
#8
|
|||
|
|||
.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?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|