The Arcive of vBulletin Modifications Site. |
|
YBMF-Hotlink Image protection Details »»
|
|||||||||||||||||||||||||||
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]
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
Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
sound good, tag for later use, thanks
|
|
#3
|
||||
|
||||
|
* Tagged * - for later use too, Thank You.
|
|
#4
|
|||
|
|||
|
why i should use this? what is hotlink?
|
|
#5
|
||||
|
||||
|
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$
|
|
#6
|
||||
|
||||
|
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 ??? |
|
#7
|
|||
|
|||
|
Quote:
|
|
#8
|
||||
|
||||
|
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 |
|
#9
|
||||
|
||||
|
God damn my site is called mydadfarts.com
|
![]() |
|
|