conflict with file_get_contents();
-
use protect download from hotlinking
1 button
<a onclick="location.href='https://site.com/download-file/?id=5672'">Download</a>
2 download-file.php (short php with the full URL)
$image_url = 'https://site.com/image.png'. '?key_e=93585676651'; ob_clean(); header('Content-type: png'); header("Content-Disposition: attachment; filename=\"image.png\""); header('Content-Transfer-Encoding: binary'); echo file_get_contents($image_url);
images and files are returned damaged
3 loading pages added to exceptions (checked page code)"(*.)download-file(*.)" "*download-file*" "{any}download-file{any}"
Download starts working fine if you turn off the plugin
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘conflict with file_get_contents();’ is closed to new replies.