Forum Moderators: phranque
Request the pages that invoke the redirect, and see what the server sees.
Jim
HTTP/1.1 301 Moved Permanently
Date: Wed, 11 Jan 2006 21:40:49 GMT
Server: Apache
Location: http://www.my_site.com/referring_site
Connection: close
Content-Type: text/html; charset=iso-8859-1
Server response time:less than 1 second
http://www.referring_site.com.br/
do you have some idea what can I do?
thanks santi
[edited by: jdMorgan at 12:25 am (utc) on Jan. 12, 2006]
[edit reason] de-linked and obscured URLs [/edit]
the way you modified the report is correct, yesIs the referring site name passed to your site as a page name?
According to what I see in the report, both of these are either true or false.
The redirect appears to be to a page on your site. The page has the name of the site that is redirecting.
If this is the case, then you can simply deny access to that URL.
Maybe I'm reading the report incorrectly. but the redirect is shown above as
Location: http://www.my_site.com/referring_site
which means that the URL requested from your site is "/referring_site"
and therefore you can easily block it.
RewriteRule ^referring_site$ - [F]
I will explain better
this URL
http://www.referring_site.com.br
http://www.my_site.com/some_folder
i did your test and get this
.................................
HTTP/1.1 301 Moved Permanently
Date: Wed, 11 Jan 2006 21:40:49 GMT
Server: Apache
Location:
http://www.my_site.com/some_folder
Server response time:less than 1 second
http://www.referring_site.com.br/
.............................
Im trying to block that redirect
you say that I must to put this line
on .htaccess into my folder attact
RewriteRule ^http://www.referring_site.com.br$ - [F]
I really thank your help
RewriteCond %{HTTP_REFERER} ^http://(www\.)?unwelcome_domain\.com
RewriteRule .* - [F]
Jim
on site.B I have an .htaccess with this code
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(www\.)?site\.A
RewriteRule .* - [F]
when click from site.A to site.B
using <a href=site.B>site.B</a>
it works well
then I cannot access to site.B from site.A
but,
when redirect site.A to site.B
using on site.A an PHP function
header("location: site.B");
it doesn't work well, then i get access
which is the problem?
thanks again
No client is required to send a referrer header, and there is nothing you can do about this unless you use an access-control method that is not based on referrers.
I suggest you look into using a script to set a cookie for clients entering 'authorized entry points' on your site. Then require that cookie to be set in order to access your protected content.
Jim