homepage Welcome to WebmasterWorld Guest from 54.237.122.241
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
htaccess redirection
redirection and domain access
bsf




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

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.

 

DaveAtIFG




msg:1505250
 10:44 pm on Oct 9, 2001 (gmt 0)

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.

littleman




msg:1505251
 10:54 pm on Oct 9, 2001 (gmt 0)

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

bsf




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

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..."

littleman




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

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

bsf




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

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.

littleman




msg:1505255
 6:54 pm on Oct 10, 2001 (gmt 0)

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




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

not working

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved