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:
@@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user