Don't know if this is what you're talking about but....(and please be double check my syntax as it could be bad.
do a mod.rewrtie:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^
http://yoursite.com/.*$ [NC]
RewriteRule out\.php$
http://redirectto.com/ [R,NC]
// that basically says is a request to out.php isn't coming from yoursite, redirect them somewher else.
or you could lock your "out.php" file from EVERYONE by denying access to that file in .htaccess:
<FilesMatch out.php>
Order deny, allow
Deny from all
</FilesMatch>
Then, when you want to use the file's functions, say in "sendTraffic.php", and let noone else:
if(// check for host / domain coming from you)
{
include_once("/d2/mydir/out.php");
// do out code.
}
else
header("Location:
http://send.fucker.elsewhere/");