1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-08-26 01:03:41 +02:00

Enable in config to disallow hotlinking/leeching #46

This commit is contained in:
Mikael Roos
2015-01-19 00:00:54 +01:00
parent 4fae208c4c
commit 5e08e5ed80
4 changed files with 86 additions and 16 deletions

View File

@@ -164,6 +164,28 @@ return array(
*/
/**
* Prevent leeching of images by controlling who can access them from where.
* Default it to allow hotlinking.
* Password apply when hotlinking is disallowed, use password to allow.
* The whitelist is an array of regexpes for allowed hostnames that can
* hotlink images.
*
* Default values.
* allow_hotlinking: true
* hotlinking_whitelist: array()
*/
/*
'allow_hotlinking' => false,
'hotlinking_whitelist' => array(
'#^localhost$#',
'#^dbwebb\.se$#',
),
*/
/**
* Create custom shortcuts for more advanced expressions.
*