The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Disallow remote linking to attachment.php
I did a search and didn't come up with anything. I know this existed for vb2, but I don't think there is one for vb3, if there is, please post a link. BUt if there isn't, wondering if someone could take it on?
THanks, D |
#2
|
||||
|
||||
Theres a way to do this with an htaccess file in your forums directory but im not sure of the details off hand.
|
#3
|
||||
|
||||
Quote:
|
#4
|
|||
|
|||
if you have .htaccess file control you can put the following lines in it:
Code:
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://(forums\.)?yourdomain.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?google\. [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?search\?q=cache [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?yahoo\. [NC] RewriteRule \.(gif|jpg)$ - [F] Code:
RewriteCond %{HTTP_REFERER} !^http://(forums\.)?yourdomain.com/.*$ [NC] I also allow search engine domains to link to my images fro cacheing of pages, but you don't have to. If you don't want search engines to cache pages, just remove those lines and finally, the line: Code:
RewriteRule \.(gif|jpg)$ - [F] Code:
RewriteRule \.(gif|jpg|png|bmp)$ - [F] |
#5
|
||||
|
||||
I have the same sort of problem with remote linking of image.php and attachment.php but I can't use htaccess
Is there a way to require a user to be logged in to see the image/attachments? |
#6
|
|||
|
|||
Quote:
|
#7
|
||||
|
||||
Yes, you can.
|
#8
|
|||
|
|||
Ok, the htaccess does not work in this instance. These are php files. I use htaccess all over the place for images.
I don't want to deny guests access to attachments. So, can anyone implement this? |
#9
|
|||
|
|||
last cry for help
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|