Ho do you block outgoing traffic?

Discussion in 'PHP' started by geekos, Sep 2, 2009.

  1. #1
    Hi guys

    I want to know Ho do you block outgoing traffic.
    I want to block websites that redirects to another site.

    Example:

    Link A = google.com

    User click Link A ---- > If Link A is NOT = google.com(redirected to another site) ---- >User will redirected to homepage.
     
    geekos, Sep 2, 2009 IP
  2. shaunole

    shaunole Peon

    Messages:
    24
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You wouldn't really be able to do this in PHP, unless the data is stored in a database. If it is stored in a database, you could look into replacing the links within the content with your home page link. As far as performing this on real links throughout your website, you would need to use Javascript, but of course it will only work for users that have js enabled.

    Good Luck.
     
    shaunole, Sep 3, 2009 IP