Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-02-2005, 02:30 AM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 05-02-2005, 02:44 AM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Theres a way to do this with an htaccess file in your forums directory but im not sure of the details off hand.
Reply With Quote
  #3  
Old 05-02-2005, 03:35 AM
mholtum's Avatar
mholtum mholtum is offline
 
Join Date: May 2004
Location: Arizona
Posts: 697
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 7thgenCivic.Com
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
Do you have cpanel for control of your site? If so you can use "Hot Link Protection" and have any image you like display when someone links to your pics.. With a little imagination, this can be quite funny...
Reply With Quote
  #4  
Old 05-02-2005, 03:50 AM
anarchystar anarchystar is offline
 
Join Date: Dec 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
This will allow only the domains listed to link to images on your site, notice that I have the line:
Code:
RewriteCond %{HTTP_REFERER} !^http://(forums\.)?yourdomain.com/.*$ [NC]
that is for the subdomain forums.yourdomain.com ... any subdomain you want to allow access to imgages must be listed as such also

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]
tells the script what kind of images to apply the rules to. you can also add .bmp's or .png's by adding a pipe and the new file extenstion like this:
Code:
RewriteRule \.(gif|jpg|png|bmp)$ - [F]
Reply With Quote
  #5  
Old 05-02-2005, 02:05 PM
Protoman's Avatar
Protoman Protoman is offline
 
Join Date: Jan 2005
Posts: 237
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #6  
Old 05-02-2005, 03:09 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by anarchystar
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]
This will allow only the domains listed to link to images on your site, notice that I have the line:
Code:
RewriteCond %{HTTP_REFERER} !^http://(forums\.)?yourdomain.com/.*$ [NC]
that is for the subdomain forums.yourdomain.com ... any subdomain you want to allow access to imgages must be listed as such also

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]
tells the script what kind of images to apply the rules to. you can also add .bmp's or .png's by adding a pipe and the new file extenstion like this:
Code:
RewriteRule \.(gif|jpg|png|bmp)$ - [F]
NICE ACTION!!!!!
Reply With Quote
  #7  
Old 05-02-2005, 04:34 PM
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Location: Texas
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, you can.
Reply With Quote
  #8  
Old 05-03-2005, 02:28 AM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 06-18-2005, 03:02 AM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

last cry for help
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08300 seconds
  • Memory Usage 2,246KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (8)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete