Originally posted by neonplaq
How to: Protect avatars and attachments using mod_rewrite
Collapse
X
-
Jeez... I can't believe my post count mostly consists of questions! :eek: -
Originally posted by G3MM4I am new to vBulletin, and I'm alarmed by the fact that it's possible for someone to steal my bandwith in this way.Comment
-
Ok i read all of these posts none seems to work
My attachments are stored as file based
they are all stored above the Public_html directory.
under the FILES directory
/home/forum/files/
the attachments extentions are
.attach for atachments
.thumb for thimbnails
Now can some one over here help us out how to protect these files from being downloaded BY DOWNLOAD MANAGERS such as DAP and flashget
I wanna use mod_rewriteComment
-
regarding this, if i put the .htaccess file for the images in my smilies and avatar folders but i want the hotlink/bad image to be in my forum root will i incur a problem?Comment
-
Is there a simple confirmed way to do this? I would like to get this set up on my server.
I have found a few sites with me images.
I have vb 3.0.3 Please and thank you.Comment
-
-
-
I don't have any fancy nono.gif to taunt people but this works for me:
Code:RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(.+\.)?website\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule .*\.(mp3|mpeg|mpg|ram|rm|wma|wav|asx|wmv|avi|mov|zip|rar|exe|jpe?g|gif)$ - [F] RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(.+\.)?website\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule attachment.php [F] RewriteEngine on RewriteCond %{HTTP_REFERER} !^http://(.+\.)?website\.com/ [NC] RewriteCond %{HTTP_REFERER} !^$ RewriteRule image.php [F]
Comment
-
Here you go everyone Correct Code and Help
This will block the Hotlinking and show your Image on the other persons site of your choosing.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://206.217.207.142.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://freeonlinemoviesforum.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.freeonlinemoviesforum.com.*$ [NC]
RewriteCond %{REQUEST_URI} !^.*leech2\.gif$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG|png|PNG|jpe|JPE|jpeg|JPEG|bmp|BMP|php|PHP)$ http://www.freeonlinemoviesforum.com/leech2.gif [R,L]
The People Having their attachments disappearing on their site is bc You were using this Line
RewriteRule attachment.php http://www.denzoforums.com/link.html [R]
When I tried that line or any variation it stopped showing the attachments on my own site.Comment
-
How do you set that up to only allow image linking from a certain directory on your site?vBulletin - Sometimes, I'm just like, Wow, and then I'm like, Whoa, and then I'm like, Damn.
vBulletin.org's ol' Moderator
I have a lifetime terrorist hunting permit - #091101
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/ladenComment
-
You may wish to post this where people will be looking for it rather than the vB2 forum?Comment
-
If you use cPanel, you can use the tool setting in that to add the rewrite rules needed to stop image hot-linking in 2 seconds flat.
As far as your "attachments" go, why are you not storing all of them one level above your public_html directory (none accessible web area). A place where they cannot be hot-linked from.Comment
Related Topics
Collapse
-
Just bought and installed VBulletin Connect 5 Beta 16 and have been having some issues related to .htaccess and Wordpress.
Hopefully someone might be able to help me.
I have...-
Channel: Support Issues & Questions
-
Comment