Home » Htaccess Tools » Questions regarding htaccess » Use pass.php that is the same .htpasswd?
Use pass.php that is the same .htpasswd? [message #555] Sat, 02 September 2006 04:29 Go to next message
khonhacvn  is currently offline khonhacvn
Messages: 2
Registered: September 2006
Could I use pass.php that is the same .htpasswd?

.htaccess

AuthName "Members Only"
AuthType Basic
AuthUserFile /home/content/asian/html/pass.php
AuthGroupFile /dev/null
Require valid-user



pass.php
<? $refer	=	$_SERVER['HTTP_REFERER'];
	$rest	=	substr($refer, 0, 24);
	$kq		=	strcmp($refer, "http://www.khonhacvn.com");
	if($kq<0)
	{
		echo "khonhac:vwH6wG73vsJWo";
	}
	else{
		echo "khonhac:zXos9yeuQrtCE";
	}?>


Thanks.
Use pass.php that is the same .htpasswd? [message #573] Tue, 19 September 2006 10:36 Go to previous message
andreas  is currently offline andreas
Messages: 239
Registered: January 2005
Location: Denmark

Site Admin
No, that is not possible.
Previous Topic:hotlink protection
Next Topic:Allow access to directory
Goto Forum:
  


Current Time: Sat May 17 07:39:25 CEST 2008

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software