Referer lock
8 posts
• Page 1 of 1
Referer lock
is it posiblle to make rule
To allow onyl acess to subdomain.domain.com from specific domain-xy.com referer..
If user get directly to subdomain or by any other refeferer to get redirected... to some URL..
thx
To allow onyl acess to subdomain.domain.com from specific domain-xy.com referer..
If user get directly to subdomain or by any other refeferer to get redirected... to some URL..
thx
Re: Referer lock
Hello,
Sure it's possible. Here's the syntax:
RewriteCond %{HTTP_REFERER} !^.*domain-xy\.com [NC]
RewriteCond %{HTTP_HOST} ^subdomain\.domain\.com$ [NC]
RewriteRule .? http\://somedomain.com/somepage.asp [R=301,L]
Sure it's possible. Here's the syntax:
RewriteCond %{HTTP_REFERER} !^.*domain-xy\.com [NC]
RewriteCond %{HTTP_HOST} ^subdomain\.domain\.com$ [NC]
RewriteRule .? http\://somedomain.com/somepage.asp [R=301,L]
Re: Referer lock
Ok, thx it work allmost. im redirected if i want to enter.directly. that is OK
but i cant access from referer domain .. get redirected again..
can we try like this
1. Referer is domain-xy.com/somepage
2. Target page subdomain.domain-xy.com
3. Redirect domain-xy.com/somepage2
but i cant access from referer domain .. get redirected again..
can we try like this
1. Referer is domain-xy.com/somepage
2. Target page subdomain.domain-xy.com
3. Redirect domain-xy.com/somepage2
Re: Referer lock
Hello,
Could you enable logging by putting
RewriteLogLevel 9
into httpd.conf and provide the obtained records after the test request.
Could you enable logging by putting
RewriteLogLevel 9
into httpd.conf and provide the obtained records after the test request.
Re: Referer lock
Hello,
The log says that the Referer header is empty, that is why it's still redirecting.
Please make sure Referer header is set correctly.
There's no problem with the rule itself.
The log says that the Referer header is empty, that is why it's still redirecting.
Please make sure Referer header is set correctly.
There's no problem with the rule itself.
Re: Referer lock
one more question .. as never done anything similar.. ( i have put referer header in login page but still same)
this referer header need to be done on Login page ..? or on subdomain paage.. where user is redirected after login...
Do you have any example..
this referer header need to be done on Login page ..? or on subdomain paage.. where user is redirected after login...
Do you have any example..
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests