vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - Stop Image Hotlinking! (https://vborg.vbsupport.ru/showthread.php?t=223918)

Shogunreaper 09-26-2009 08:16 AM

Quote:

Originally Posted by dxlwebs (Post 1890339)
and what if they dont have cpanel not everyone is rich you know

What kind of hosting does not have a cpanel lol?

EidolonAH 09-26-2009 09:09 AM

Quote:

Originally Posted by thedvs (Post 1890535)
this is mine which i have used for years, works great, use .gif for the deny picture!
Code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://.*websitename\.com.*$ [NC]
RewriteCond %{REQUEST_URI}  !^.*leech\.gif$ [NC]
RewriteRule ^.*\.(swf|bmp|gif|jpg|png|jpeg|avi|wmv|mpg|mpeg|wav|mp3)$ http://www.websitename.com/leech.gif [NC,R,L]


I got that in my .htaccess file like this:
HTML Code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://.*nurturemh\.com.*$ [NC]
RewriteCond %{REQUEST_URI}  !^.*leech\.gif$ [NC]
RewriteRule ^.*\.(swf|bmp|gif|jpg|png|jpeg|avi|wmv|mpg|mpeg|wav|mp3)$ http://www.nurturemh.com/leech.gif [NC,R,L]

But it aint stopping the hotlinking (if it's working the image should be a nasty looking poo!)
*snip* nasty poo removed!

So what have I done wrong?

Arcade Fire 09-26-2009 09:13 AM

EidolonAH, woks fine for you, I see a poo :)

Delete cookies of your site, and you can see the diference.

EidolonAH 09-26-2009 09:19 AM

Quote:

Originally Posted by Arcade Fire (Post 1890755)
EidolonAH, woks fine for you, I see a poo :)

Delete cookies of vb.org, and you can see the diference.

Thanks Arcade Fire, I just saw, I removed the nasty poo image.:D

Robru 09-26-2009 05:40 PM

:):):)

princeedward 09-27-2009 06:37 AM

thanks for this....cant make it work...:(

here's my code

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://.*epaloids\.com.*$ [NC]
RewriteCond %{REQUEST_URI} !^.*leech\.gif$ [NC]
RewriteRule ^.*\.(swf|bmp|gif|jpg|png|jpeg|avi|wmv|mpg|mpeg|wa v|mp3)$ http://www.epaloids.com/leech.gif [NC,R,L]

need help pls. thanks and best regards

EidolonAH 09-27-2009 04:15 PM

Quote:

Originally Posted by princeedward (Post 1891205)
thanks for this....cant make it work...:(

here's my code

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://.*epaloids\.com.*$ [NC]
RewriteCond %{REQUEST_URI} !^.*leech\.gif$ [NC]
RewriteRule ^.*\.(swf|bmp|gif|jpg|png|jpeg|avi|wmv|mpg|mpeg|wa v|mp3)$ http://www.epaloids.com/leech.gif [NC,R,L]

need help pls. thanks and best regards

https://vborg.vbsupport.ru/external/2009/09/1.gif <<< My Site Image

Give it a go from one of the smilies on your site or something like that, the image you are testing is hosted on photobucket, not your server. ;)

princeedward 09-27-2009 05:51 PM

Quote:

Originally Posted by EidolonAH (Post 1891367)
Give it a go from one of the smilies on your site or something like that, the image you are testing is hosted on photobucket, not your server. ;)

i guess got it now....

Mike08 10-05-2009 05:38 PM

what about google spiders?? Do not we must insert his url's in this code??

IRANCITY 10-05-2009 06:08 PM

Quote:

Originally Posted by Mike08 (Post 1895255)
what about google spiders?? Do not we must insert his url's in this code??

this is my question...
how can alow bot for save this pic and page ?


All times are GMT. The time now is 03:27 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.01061 seconds
  • Memory Usage 1,740KB
  • 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_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete