vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Where do I put the .htaccess if I want to prevent bandwidth stealing? (https://vborg.vbsupport.ru/showthread.php?t=55791)

Gutspiller 08-01-2003 07:47 AM

Where do I put the .htaccess if I want to prevent bandwidth stealing?
 
Do I put the .htaccess in my forum directory if I want it to display a different image when people try and link to my attachments?

Also, I was told something like this would work at replacing attachments with my own image:

Code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://3dnewz.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.3dnewz.com.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG|mpg|MPG)$ http://www.3dnewz.com/images/banners/stealer.jpg

will that code work with forum attachments and would I just place the .htaccess file in my forum directory? Also, I heard that CuteFTP is unable to see .htaccess files already on the server. Does anybody know if this is true? I don't want to overwrite anything that needs to be there.

Thanks.

Erwin 08-01-2003 01:40 PM

Put the .htaccess in the highest directory where you want to protect the files in that directory and its sub-directories - so put it in root if you want ALL subdirectories to be affected, or in /images if you want all subdirectories in /images to be affected.

Best to do this in SSH rather than FTP as some FTP programs cannot see .htaccess files.

NTLDR 08-01-2003 01:49 PM

See if there is an option to view hidden files in CuteFTP. In *NIX files starting with a . (eg .htaccess, .bashrc) are hidden.

Gutspiller 08-02-2003 05:26 AM

Quote:

Yesterday at 08:40 AM Erwin said this in Post #2
Put the .htaccess in the highest directory where you want to protect the files in that directory and its sub-directories - so put it in root if you want ALL subdirectories to be affected, or in /images if you want all subdirectories in /images to be affected.

Best to do this in SSH rather than FTP as some FTP programs cannot see .htaccess files.


I don't know how to do it in SSH. Can you please give me instructions on how to do it in SSH or tell me what FTP will see .htaccess files?

One last question that I have is, I have multiple domains also. I would like to put a .htaccess for each of my sites, but I want each site to be able to access the other sites images and if need be, post them on the other sites. But I don't want to allow any other sites besides the sites within my network to do this. Can somebody please help me with the .htaccess code so that I know how to add my other sites to the .htaccess?

Thanks for any help you can provide.

Gutspiller 08-06-2003 02:14 AM

bump


All times are GMT. The time now is 11:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01119 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete