PDA

View Full Version : Trick for bandwidth stealers!



Creepshow
Thu 20th Oct '05, 10: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:




Thanks! :D

Vtec44
Thu 20th Oct '05, 10: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, 10: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, 10: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, 11: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, 11: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, 11:45pm
post the content of your .htaccess file :D

Creepshow
Thu 20th Oct '05, 11: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, 11: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, 11: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
Fri 21st Oct '05, 12:01am
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
Fri 21st Oct '05, 12:03am
nice! :D

Creepshow
Fri 21st Oct '05, 12:04am
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
Fri 21st Oct '05, 12:07am
Oh don't worry, I'll send you the bill :D

Creepshow
Fri 21st Oct '05, 12:14am
Oh don't worry, I'll send you the bill :D

Ahahahaha :D

Creepshow
Fri 21st Oct '05, 12:16am
Test



I love this. :D

Floris
Fri 21st Oct '05, 2:28am
Sweet! Looks good :)

Creepshow
Fri 21st Oct '05, 3: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, 8: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, 9: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, 6:43pm
Test



I love this. :D I see the picture you have on your main site. Am I supposed to see that?

Creepshow
Sun 23rd Oct '05, 12:30am
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
Sun 23rd Oct '05, 12:32am
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
Sun 23rd Oct '05, 12:33am
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?