View Single Post
Old 07-18-2003, 08:27 AM  
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
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/");
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote