Back to vBulletin 4.x Template Modifications

YBMF-Hotlink Image protection
Mod Version: 1.00, by TimberFloorAu

vB Version: 4.0.1 Rating: (0 vote - 0 average) Installs: 18
Released: 27 Jan 2010 Last Update: Never Downloads: 90
Not Supported Template Edits Re-usable Code Translations  

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

File Type: %1$s hotlink.zip (39.7 KB, 114 downloads)

Similar Mods

Mini Mods YBMF-Image Thang-New Latest Album Pictures - Forum Home ( Extension ) vBulletin 4.x Add-ons

vblts.ru supports vBulletin®, 2022-2024