jesseclane 0 Report post Posted November 28, 2008 salam.. nk tanye pasai header()...aku nye GET: index.php?dir=&file=script aku..CODE<?php$ref = $_SERVER['HTTP_REFERER'];$agent = $_SERVER['HTTP_USER_AGENT']; if (preg_match("/website.com/i", $ref)) { $loc = $_GET('dir'); <-- line 8 $file = $_GET('file'); if (!$loc) { die("No input specified"); } $struct = "?dir=".$loc."&file=".$file; $sx = "Location: http://site.com/get.php".$struct; header($sx);} else { echo "Client Information: <br />"; echo "Referrer: ".$ref; echo "<br />"; echo "User-Agent: ".$agent; echo "<br />"; echo "BLOCKED"; }?>kekadang dir= return "" (xde value); cth> index.php?dir=&file=name.mp3kalu ada value = index.php?dir=/mp3&file=/name.mp3Error --> Fatal error: Function name must be a string in /public_html/index.php on line 8cmne ek? thx..script ni aku buat utk disallow website yang curik link aku.. huhu Share this post Link to post Share on other sites
kripkorn 1 Report post Posted November 28, 2008 suggestionla kalau u x nak org curi link, dalam Cpanel enablekan hotlink. Share this post Link to post Share on other sites
jesseclane 0 Report post Posted November 28, 2008 nie kes nk belaja kalau ada sape2 leh try solve.. hehe.. baru je berjinak2 dlm php nie Share this post Link to post Share on other sites
BasicCX 27 Report post Posted November 29, 2008 http://www.thesitewizard.com/archive/protectimages.shtml Share this post Link to post Share on other sites
slier 28 Report post Posted November 29, 2008 (edited) CODE$loc = $_GET('dir'); <-- line 8$file = $_GET('file');bkn sepatutnya mcm ni kerCODE$loc = $_GET['dir']; <-- line 8$file = $_GET['file']; Edited November 29, 2008 by slier Share this post Link to post Share on other sites
BasicCX 27 Report post Posted November 29, 2008 http://hardanswers.net/hotlink-protection Share this post Link to post Share on other sites
jesseclane 0 Report post Posted November 30, 2008 dh solve.. thanks all! Share this post Link to post Share on other sites