The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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 Thanks. |
#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. |
#3
|
||||
|
||||
See if there is an option to view hidden files in CuteFTP. In *NIX files starting with a . (eg .htaccess, .bashrc) are hidden.
|
#4
|
||||
|
||||
Quote:
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. |
#5
|
||||
|
||||
bump
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|