vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - YBMF-Hotlink Image protection (https://vborg.vbsupport.ru/showthread.php?t=234269)

TimberFloorAu 01-26-2010 10:00 PM

YBMF-Hotlink Image protection
 
1 Attachment(s)
This is so simple:

open .htaccess in yourdomain.com/
and possibly in yourdomain.com/forum

dependant on your setup. ( both if applicable )

Add this code to the end: READ INSTRUCTIONS AFTERWARDS

Code:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?yobromofo\.com/ [NC]
RewriteCond %{HTTP_REFERER} !vbulletin\.org [NC]
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L]

Instructions:

1. change yobromofo to your domain ( so if you run a site called mydadfarts.com enter mydadfarts in place of yobromofo

2. add exceptions, in this case my exceptions are:

vbulletin ( org )
google ( all tld's )

Simple huh.

Now open your fave image program such as , Photoshop ( use the included PSD if you like )

Change it to suit your site, and save as nohotlink.jpg

Then upload it to your server :
to----
yourdomain.com/images/
yourdomain.com/forum/images/

Done ;)

RL714 01-27-2010 06:05 AM

sound good, tag for later use, thanks

Welshy2008 01-27-2010 07:25 AM

* Tagged * - for later use too, Thank You.

cloferba 01-27-2010 03:58 PM

why i should use this? what is hotlink?

YankForum 10-24-2010 03:25 PM

this is awesome
--------
EDIT: however you should not forget to allow this specific image for hotlinking by adding this line :
Code:

RewriteCond %{REQUEST_URI} !^/images/nohotlink\.jpg$

naveeid 04-13-2011 05:18 AM

i wonder how this mod will effect this url in which there is no ".JPG" but only php file extension
http://www.nidokidos.org/attachment....4&d=1302073201

???

yahooooh 04-20-2011 02:13 AM

Quote:

Originally Posted by naveeid (Post 2184090)
i wonder how this mod will effect this url in which there is no ".JPG" but only php file extension
http://www.nidokidos.org/attachment....4&d=1302073201

???

me too

naveeid 04-26-2011 04:54 AM

Quote:

Originally Posted by yahooooh (Post 2186514)
me too

yahoooh i got the solution.
you need to add some more lines. i have installed it and its working.

see this modification
https://vborg.vbsupport.ru/showthread.php?p=2188755

Mr Morningstarr 05-03-2011 02:15 PM

God damn my site is called mydadfarts.com :eek:


All times are GMT. The time now is 07:05 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.01585 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete