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)

FiMeTi 09-25-2009 08:23 AM

Well that works, but I can´t get the deny.png to show. There´s just no image or a brokenlink-img. But it blocks other websites.

EidolonAH 09-25-2009 08:27 AM

Quote:

Originally Posted by FiMeTi (Post 1890345)
Well that works, but I can?t get the deny.png to show. There?s just no image or a brokenlink-img. But it blocks other websites.

can you post what you have in your .htaccess and where you put it that file, I can't get this to work myself.

FiMeTi 09-25-2009 08:32 AM

At the bottom of your .htaccess file you drop in this code.
Code:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?MYDOMAIN\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/misc/deny.png [L]

But the deny image does not pop up. Neither with this code, nor with the code of dxlwebs. ;/

dxlwebs 09-25-2009 08:32 AM

add this into your .htacces file in your forums root
Code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?yoursite.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?domain2.com [NC]
RewriteRule .*\.(jpg|png|bmp|gif)$ http://yourdomain.com/forum/nhl.png [NC,R,L]

edit the links to your specified needs remember to put the correct links in and you must have your site url where i put yoursite.com to make sure that your sites images still show!

dxlwebs 09-25-2009 08:34 AM

Quote:

Originally Posted by FiMeTi (Post 1890349)
At the bottom of your .htaccess file you drop in this code.
Code:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?MYDOMAIN\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://yoursite.com/images/misc/deny.png [L]

But the deny image does not pop up. Neither with this code, nor with the code of dxlwebs. ;/


your forgot to put your sites domain then the image socation i etided it in the quote take a look!

FiMeTi 09-25-2009 08:37 AM

Thanks mate, but I tried that surely, too. Still not working. Cache always empty before I test.
Anyway, this is still good enough. :)

dxlwebs 09-25-2009 08:40 AM

hmmm try putting www. before your domain if not then im stumped it should work!

Arcade Fire 09-25-2009 09:07 AM

Works, but not show alternative image.

I put one smile of my forum in Post #3 of this thread, but isn't sustitute for nhl.png image.

thedvs 09-25-2009 05:58 PM

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]


Arcade Fire 09-26-2009 08:09 AM

Thanks theadvs, woks fine!.

Example wen i put a icon of my forum:

http://rotolandia.com/images/icons/roto2cafe.gif


All times are GMT. The time now is 01:18 AM.

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.01033 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_code_printable
  • (2)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