mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-29 18:39:53 +02:00
* Using CWhitelist
for checking hotlinking to images, fix #88.
* Added mode for `test` which enables logging verbose mode to file, fix #97.
This commit is contained in:
@@ -201,9 +201,12 @@ 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.
|
||||
* Prevent leeching of images by controlling the hostname of those who
|
||||
* can access the images. Default is to allow hotlinking.
|
||||
*
|
||||
* Password apply when hotlinking is disallowed, use password to allow
|
||||
* hotlinking.
|
||||
*
|
||||
* The whitelist is an array of regexpes for allowed hostnames that can
|
||||
* hotlink images.
|
||||
*
|
||||
@@ -214,13 +217,11 @@ return array(
|
||||
/*
|
||||
'allow_hotlinking' => false,
|
||||
'hotlinking_whitelist' => array(
|
||||
'#^localhost$#',
|
||||
'#^dbwebb\.se$#',
|
||||
'^dbwebb\.se$',
|
||||
),
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Create custom shortcuts for more advanced expressions.
|
||||
*
|
||||
|
Reference in New Issue
Block a user