Welcome to WebmasterWorld Guest from 54.159.240.93

Forum Moderators: Ocean10000 & incrediBILL & phranque

htaccess redirection

redirection and domain access

   

bsf

10:57 am on Oct 6, 2001 (gmt 0)

10+ Year Member



using htaccess i am Authenticating the user after that i am sending the user to second domain. that i am doing with redirect.now the problem is that i want to restrict all the other domains and allow only the people comming from the first domain to be able to brows. i am getting access denied if i try that and the request seems to go from my machine insted from the first domain. what can be the best solution if in htaccess or any other way.
10:44 pm on Oct 9, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



We're pleased you dropped by wmw bsf. Welcome! I've brought your questions up in the moderators forum, hopefully we'll round up some useful answers for you.
10:54 pm on Oct 9, 2001 (gmt 0)

WebmasterWorld Senior Member littleman is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Try this:
order_referer allow_referer,deny_referer
deny_referer from all
allow_referer from yourdomain.com

bsf

5:41 am on Oct 10, 2001 (gmt 0)

10+ Year Member



littleman

i made the changes but am getting 500 internal server error saying "... Invalid command 'order_referer', perhaps mis-spelled or defined by a module not included in the server configuration..."

8:21 am on Oct 10, 2001 (gmt 0)

WebmasterWorld Senior Member littleman is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Sorry, try this:
SetEnvIfNoCase Referer "domain\.org" local_ref=1
Order Allow,Deny
Allow from env=local_ref

bsf

9:11 am on Oct 10, 2001 (gmt 0)

10+ Year Member



i am using "...SetEnvIfNoCase Referer "first_domain\.com" local_ref=1
Order Allow,Deny
Allow from env=local_ref .." but am still getting 403 forbidden error and their is no error on the error log.
6:54 pm on Oct 10, 2001 (gmt 0)

WebmasterWorld Senior Member littleman is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Make sure your referer is matching up with what you have in your .htaccess file. I have a script you could use to test different referers ( [cgi-fun.hypermart.net...] ) to make sure you have it right. Put your referer in the "From Where?" section. Turn off your javascript, or you'll be forced to look at pop-up ads.

bsf

11:10 am on Oct 12, 2001 (gmt 0)

10+ Year Member



not working
 

Featured Threads

Hot Threads This Week

Hot Threads This Month