How can i ban the specific URL / Domain in phproxy?

Discussion in 'General Business' started by HighTech, Oct 18, 2007.

  1. #1
    Hi there...:)

    I'd like to ban some URLs / Domains from my proxies which have phproxy script so nobody can see those sites through my proxies.

    Does anybody have idea about that? ;)

    Thanks in advance
     
    HighTech, Oct 18, 2007 IP
  2. ____________

    ____________ Peon

    Messages:
    117
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you need something like

    if($_SESSION[form_url_field]==$blockeddomain){
    echo "ERROR - URL Blocked";
    }
    Code (markup):
    note that its just an example to check one domain you need to mofidy this to fit your needs
     
    ____________, Oct 18, 2007 IP
  3. HighTech

    HighTech Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks guy,

    I used 'strpos' and it worked:
     
    HighTech, Oct 18, 2007 IP