View Full Version : Trick for bandwidth stealers!
Creepshow
Thu 20th Oct '05, 9:37pm
OK, I've seen some sites where if you try and hotlink their images, a graphic will come up saying something like "Don't steal our bandwidth!" or whatever.
How is this done?
EXAMPLE:
http://www.blogography.com/photos4/TinaFey.jpg
Thanks! :D
Vtec44
Thu 20th Oct '05, 9:45pm
.htaccess :D There are still ways to bypass this though
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.mydomain.com/nostealing.gif [R,L]
Creepshow
Thu 20th Oct '05, 9:52pm
.htaccess :D There are still ways to bypass this though
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.mydomain.com/nostealing.gif [R,L]
Thanks, but how do I implement this?
How do I create an .htaccess file exactly?
Sorry for the newbish questions, lol. I've just never used htaccess before. Heard of it, don't know anything about it! :D
Thanks...
harmor
Thu 20th Oct '05, 9:58pm
all you do is open notepadd save it as .htaccess
then in put RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.mydomain.com/nostealing.gif [R,L]
Edit the url's.
Upload to where you keep your pictures and you're done
Creepshow
Thu 20th Oct '05, 10:02pm
all you do is open notepadd save it as .htaccess
then in put RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.mydomain.com/nostealing.gif [R,L]
Edit the url's.
Upload to where you keep your pictures and you're done
Thanks! :D
Creepshow
Thu 20th Oct '05, 10:44pm
OK, slight problem lol.
I've done it, it works, but the no stealing image is coming up on my site!
See my homepage: http://www.realmofhorrorcomics.com/
HELP!
Thanks. :D :D
Vtec44
Thu 20th Oct '05, 10:45pm
post the content of your .htaccess file :D
Creepshow
Thu 20th Oct '05, 10:48pm
post the content of your .htaccess file :D
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?realmofhorrorcomics.com/horrific_images/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.realmofhorrorcomics.com/own3d.jpg [R,L]
Vtec44
Thu 20th Oct '05, 10:50pm
On the third line, use this instead.
RewriteCond %{HTTP_REFERER} !^http://(www\.)?realmofhorrorcomics.com/.*$ [NC]
It's to identify which domain is allowable, so you want your entire domain of www.realmofhorrorcomics.com (http://www.realmofhorrorcomics.com), not just http://www.realmofhorrorcomics.com/horrific_images/
Oh, create a new .htaccess and put it in your main directory, and add the code below
IndexIgnore *
That will prevent people from listing your directory, like we all can when we click on http://www.realmofhorrorcomics.com/horrific_images/ now :D
Creepshow
Thu 20th Oct '05, 10:53pm
On the third line, use this instead...
RewriteCond %{HTTP_REFERER} !^http://(www\.)?realmofhorrorcomics.com/.*$ [NC]
LOL Thanks, that worked. (http://www.realmofhorrorcomics.com)
Creepshow
Thu 20th Oct '05, 11:01pm
Oh, create a new .htaccess and put it in your main directory, and add the code below
IndexIgnore *
That will prevent people from listing your directory, like we all can when we click on http://www.realmofhorrorcomics.com/horrific_images/ now :D
Like this? (http://www.realmofhorrorcomics.com/horrific_images) :)
Vtec44
Thu 20th Oct '05, 11:03pm
nice! :D
Creepshow
Thu 20th Oct '05, 11:04pm
nice! :D
Thanks for all the help man, I really appreciate it.
I would give you pos rep if this board had it enabled. ;) :D
Vtec44
Thu 20th Oct '05, 11:07pm
Oh don't worry, I'll send you the bill :D
Creepshow
Thu 20th Oct '05, 11:14pm
Oh don't worry, I'll send you the bill :D
Ahahahaha :D
Creepshow
Thu 20th Oct '05, 11:16pm
Test
http://www.realmofhorrorcomics.com/horrific_images/main_site_image.jpg
I love this. :D
Floris
Fri 21st Oct '05, 1:28am
Sweet! Looks good :)
Creepshow
Fri 21st Oct '05, 2:43am
Sweet! Looks good :)
Thanks Floris.
Can someone do me a favour and tell me exactly what the graphic says in my test above? Just need to check something...
Noiz Pollution
Fri 21st Oct '05, 7:54am
I just checked your site and it looks like you're blocking one of your own images. Clear your cache then look at it.
Creepshow
Fri 21st Oct '05, 8:02am
I just checked your site and it looks like you're blocking one of your own images. Clear your cache then look at it.
Can you take a screen grab for me?
I dont want to lose all my cached data.
Onimua
Sat 22nd Oct '05, 5:43pm
Test
http://www.realmofhorrorcomics.com/horrific_images/main_site_image.jpg
I love this. :D I see the picture you have on your main site. Am I supposed to see that?
Creepshow
Sat 22nd Oct '05, 11:30pm
I see the picture you have on your main site. Am I supposed to see that?
No. It's an 0wned image you should see.
It only works when you refresh the page though.
Anyone know why?
Onimua
Sat 22nd Oct '05, 11:32pm
Ah, you're right. Refreshed and I see what I'm supposed to see.
Maybe it's got something to do with some sort of cache going on? Not sure.
Creepshow
Sat 22nd Oct '05, 11:33pm
Ah, you're right. Refreshed and I see what I'm supposed to see.
Maybe it's got something to do with some sort of cache going on? Not sure.
Do you know any solutions I might try to fix this by any chance?
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.