/ Published in: PHP

For low level authentication only.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $referer = $_SERVER['HTTP_REFERER']; if($referer_parse['host'] == "site.com" || $referer_parse['host'] == "www.site.com") { // download... $chunk = $modx->getChunk("displayChunk"); echo $chunk; } else { //header("Location: http://www.mysite.com"); //$modx->sendRedirect(); echo $modx->getChunk("noAccess"); //exit(); } ?>
Comments
