The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Attachment.php hotlinking
How can I keep people from hotlinking to attachments? I already stop hotlinks for images. I cannot simply add php to the set since it will prevent people from linking to our article which are php as well.
Any ideas how to keep attachment.php specifically from being hotlinking from outside the domain? I figured it out... here is the code I used in .htaccess to prevent hotlinking for attachment.php and avatar.php Code:
<FilesMatch "attachment\.php"> ErrorDocument 403 http://mydomain.com/sorry.gif SetEnvIf Referer "^http://www\.pimprig\.com" good_referal SetEnvIf Referer "^http://pimprig\.com" good_referal SetEnvIf Referer "^http://forums\.pimprig\.com" good_referal SetEnvIf Referer "^http://gallery\.pimprig\.com" good_referal SetEnvIf Referer "^http://links\.pimprig\.com" good_referal SetEnvIf Referer "^http://reviews\.pimprig\.com" good_referal SetEnvIf Referer "^http://guides\.pimprig\.com" good_referal SetEnvIf Referer "^http://systems\.pimprig\.com" good_referal SetEnvIf Referer "^http://articles\.pimprig\.com" good_referal SetEnvIf Referer "^http://news\.pimprig\.com" good_referal SetEnvIf Referer "^http://team\.pimprig\.com" good_referal SetEnvIf Referer "^$" good_referal Order Deny,Allow Deny from all Allow from env=good_referal </FilesMatch> <FilesMatch "avatar\.php"> ErrorDocument 403 http://mydomain.com/sorry.gif SetEnvIf Referer "^http://www\.pimprig\.com" good_referal SetEnvIf Referer "^http://pimprig\.com" good_referal SetEnvIf Referer "^http://forums\.pimprig\.com" good_referal SetEnvIf Referer "^http://gallery\.pimprig\.com" good_referal SetEnvIf Referer "^http://links\.pimprig\.com" good_referal SetEnvIf Referer "^http://reviews\.pimprig\.com" good_referal SetEnvIf Referer "^http://guides\.pimprig\.com" good_referal SetEnvIf Referer "^http://systems\.pimprig\.com" good_referal SetEnvIf Referer "^http://articles\.pimprig\.com" good_referal SetEnvIf Referer "^http://news\.pimprig\.com" good_referal SetEnvIf Referer "^http://team\.pimprig\.com" good_referal SetEnvIf Referer "^$" good_referal Order Deny,Allow Deny from all Allow from env=good_referal </FilesMatch> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|