Meta Redirect

Discussion in 'PHP' started by humm, Apr 17, 2012.

  1. #1
    Is there a possible code to redirect to alternate sites using meta re-direct?

    Please let me know.
     
    humm, Apr 17, 2012 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,899
    Likes Received:
    4,555
    Best Answers:
    123
    Trophy Points:
    665
    #2
    The meta redirect is in the html sent to the browser.

    You have complete control over what html your php script sends to the browser so you could easily code in a random redirect generator or one that is more targetted depending on where the visitor is from, the page they initially requested, other cookies you've left on their system.
     
    sarahk, Apr 17, 2012 IP
  3. Lee Stevens

    Lee Stevens Active Member

    Messages:
    148
    Likes Received:
    3
    Best Answers:
    2
    Trophy Points:
    68
    #3
    Yes there is:
    
    <meta http-equiv="refresh" content="2; URL=http://www.ASpamSite.com/">
    
    Code (markup):
     
    Lee Stevens, Apr 17, 2012 IP