Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
YBMF-Hotlink Image protection Details »»
YBMF-Hotlink Image protection
Version: 1.00, by TimberFloorAu TimberFloorAu is offline
Developer Last Online: Jan 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.1 Rating:
Released: 01-26-2010 Last Update: Never Installs: 18
Template Edits
Re-useable Code Translations  
No support by the author.

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

Download Now

File Type: zip hotlink.zip (39.7 KB, 112 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-27-2010, 06:05 AM
RL714 RL714 is offline
 
Join Date: Feb 2006
Location: OC, California
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sound good, tag for later use, thanks
Reply With Quote
  #3  
Old 01-27-2010, 07:25 AM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

* Tagged * - for later use too, Thank You.
Reply With Quote
  #4  
Old 01-27-2010, 03:58 PM
cloferba cloferba is offline
 
Join Date: Apr 2009
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

why i should use this? what is hotlink?
Reply With Quote
  #5  
Old 10-24-2010, 03:25 PM
YankForum's Avatar
YankForum YankForum is offline
 
Join Date: Mar 2010
Location: MY
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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$
Reply With Quote
  #6  
Old 04-13-2011, 05:18 AM
naveeid's Avatar
naveeid naveeid is offline
 
Join Date: Jan 2011
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

???
Reply With Quote
  #7  
Old 04-20-2011, 02:13 AM
yahooooh yahooooh is offline
 
Join Date: Nov 2009
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by naveeid View Post
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
Reply With Quote
  #8  
Old 04-26-2011, 04:54 AM
naveeid's Avatar
naveeid naveeid is offline
 
Join Date: Jan 2011
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yahooooh View Post
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
Reply With Quote
  #9  
Old 05-03-2011, 02:15 PM
Mr Morningstarr's Avatar
Mr Morningstarr Mr Morningstarr is offline
 
Join Date: Jun 2006
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

God damn my site is called mydadfarts.com
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:32 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04740 seconds
  • Memory Usage 2,296KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete