How do you modify a proxy script, so that it blocks certain sites?

Discussion in 'PHP' started by NewTier, Feb 28, 2007.

  1. #1
    There's been users surfing "porn" sites and I know these are sites that aren't good. But also, I dont want these users to be on these sites.

    How can I modify the PHProxy, proxy script, or CGI proxy script, so that when a certain domain is typed, it instead redirects to another innocent site, like google?

    I'll give you a free word clouds script if someone can help me one on one! :D
     
    NewTier, Feb 28, 2007 IP
  2. ThreeGuineaWatch

    ThreeGuineaWatch Well-Known Member

    Messages:
    1,489
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Perhaps run some regex matching on the url looking for tell-tale words (teen, pron, etc.) and then redirect to a standard page while placing the user's IP in a deny file. regex engine has some overhead though.
     
    ThreeGuineaWatch, Feb 28, 2007 IP
  3. nnet

    nnet Peon

    Messages:
    347
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Are you sure proxies are really your thing? Sad as it may be, porn is what maybe 50% (if not more) of people use proxies for, and a proxy is suppose to be about allowing sites to be viewed where they cant be otherwise, after all.

    BTW why porn as "porn", porn is just porn, theres nothing dubious in the description :D
     
    nnet, Feb 28, 2007 IP