file 다운로드 리퍼러 검사

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5347 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2009-01-13 07:02:40 +00:00
parent 671bdc3e8d
commit 0772f4ab65
12 changed files with 233 additions and 198 deletions

View file

@ -71,6 +71,10 @@
if(!$is_permitted) return $this->stop('msg_not_permitted_download');
}
}
if($file_module_config->allow_outlink == 'N') {
$referer = parse_url($_SERVER["HTTP_REFERER"]);
if($referer['host'] != $_SERVER['HTTP_HOST']) return $this->stop('msg_not_permitted_download');
}
// trigger 호출 (before)
$output = ModuleHandler::triggerCall('file.downloadFile', 'before', $file_obj);