Would the [include...] be blocked?

Discussion in 'PHP' started by mmelen, Jan 9, 2008.

  1. #1
    not sure if this is the best place to post, but I didn't really find anywhere else.

    I run a set of proxy websites.

    I want to have all my ads on one URL and use the PHP include function to retrieve them.

    My question is... if the domain I retrieve them from is blocked (i.e. unblockmyspace.com/includethis.php), would the contents then not load? or would this whole site now be blocked?

    any ideas?
     
    mmelen, Jan 9, 2008 IP
  2. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #2
    Why not use iframes?
     
    Kaizoku, Jan 9, 2008 IP
  3. HoagieKat

    HoagieKat Peon

    Messages:
    87
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If the domain is firewalled by your ISP it wouldn't load no. You'd be better off doing what Kaizoku has said and using an iframe.
     
    HoagieKat, Jan 10, 2008 IP
  4. Kieran.in

    Kieran.in Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you have the site for instance http://site.com/ads.php


    And you have 3 other sites which you want all to have the same ads.


    http://site2.com
    http://site3.com
    http://site4.com

    If site.com is blocked through someones ISP and your including the ads from site.com onto site2.com, site3.com and site4.com using "include()", then it will still include the file. It won't be blocked. It will still include. (you need to make sure you have wrapper security off though)


    By using iframes the site will be blocked, as it's a seperate page.

    I think thats what your asking.
     
    Kieran.in, Jan 10, 2008 IP
  5. Kieran.in

    Kieran.in Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    So, no it wouldn't be blocked (sorry about double post, wouldn't let me edit my other one :S)
     
    Kieran.in, Jan 10, 2008 IP
  6. mmelen

    mmelen Well-Known Member

    Messages:
    1,526
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    105
    #6
    Kieran.in, that's exactly what I was looking for... thanks a lot.

    And ummm.. what's wrapper security?
     
    mmelen, Jan 10, 2008 IP
  7. lslars31

    lslars31 Peon

    Messages:
    260
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I would think it would still work.. your ads are being retrieved server side, before it gets sent out. I'm willing to bet that that's even before the firewall gets a hold of it.
     
    lslars31, Jan 10, 2008 IP
  8. mmelen

    mmelen Well-Known Member

    Messages:
    1,526
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    105
    #8
    Well you guys are right... the include was not blocked even though the domain of it was.
     
    mmelen, Jan 12, 2008 IP
  9. lslars31

    lslars31 Peon

    Messages:
    260
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Awesome! Glad I could be of some help.
     
    lslars31, Jan 29, 2008 IP