Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Apr 2010
    Posts
    120
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Is there anyway to recognise a 302 redirect coming in?

    HTTP_REFERER will only tell me the originating site of the click. e.g.

    if there is a link www.notmysite1.com/click.php on a website www.notmysite2.com that when clicked 302 redirects through www.notmysite3.com/click302.php to get to me (www.mysite.com)

    then how do I find out the web address of www.notmysite3.com? Right now, http_referer only tells me www.notmysite2.com

    If there is a 302 redirect inbetween a click and my site, how do I recognise it?

    Thanks
    Mike
    I've been making animations for my daughter. Tell me what you think!

    Pickles and the Bully
    Where are you Pickles!?!

  • #2
    Regular Coder
    Join Date
    Apr 2010
    Posts
    120
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Does no-one know the answer, or have I asked the question in a confusing way?
    I've been making animations for my daughter. Tell me what you think!

    Pickles and the Bully
    Where are you Pickles!?!

  • #3
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    A quick look over the rfc's for the http indicate there is no referrer controls. So the answer is, maybe. Since there appears to be no defined referrer handling, it is up to the browsers and servers to determine what they want to do with it, and will provide no guarantee as to what if any data it will have. Referrer is already an unreliable method of tracking, so you'll need to use an alternative means such as a querystring.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #4
    Regular Coder
    Join Date
    Apr 2010
    Posts
    120
    Thanks
    6
    Thanked 0 Times in 0 Posts
    Just had SEDO complaining that traffic going to some of my parked domains was being "forwarded" from other sites. It is - I 301/302 redirect from some domains to their parked variants:

    e.g. keyworddomain.net is parked and some pages on keyworddomain.com 301/302 redirect to it.

    How would they know that keyworddomain.com 301/302 redirects to it? They can't visit the actual pages that 301/302 redirect. Only people trying access old pages from their bookmarks are sent to the parked page.
    I've been making animations for my daughter. Tell me what you think!

    Pickles and the Bully
    Where are you Pickles!?!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •