Revision: 16099
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 27, 2009 02:10 by hotdiggity
Initial Code
<?php $referer = $_SERVER['HTTP_REFERER']; $referer_parse = parse_url($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(); } ?>
Initial URL
Initial Description
For low level authentication only.
Initial Title
MODx referer authentication snippet
Initial Tags
Initial Language
PHP