The Proxy Discussion Thread

Discussion in 'General Business' started by antman, Jul 14, 2007.

  1. Sneef

    Sneef Peon

    Messages:
    212
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4561
    Ok doing some research here on blocking China and Iran..

    I found this
    <?php
    $country = geoip_country_code_by_name($_SERVER["REMOTE_ADDR"]);
    if (($country == "CN") or ($country == "IR") or ($country == "SA")) { die("Sorry to say your country is blocked from this proxy!"); }
    
    ?>
    PHP:

    But i do not want to block them totally.
    I just want to redirect them away somewhere...
    Anyone know how to rewrite this PHP so that they get redirected.
    I know how to do it in .htaccess but i am not so good with PHP.
     
    Sneef, Jan 31, 2008 IP
  2. Sneef

    Sneef Peon

    Messages:
    212
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4562
    ACTUALLY! don't anybody answer that question.
    I have just gotten a coder to write me a proper solution.
     
    Sneef, Jan 31, 2008 IP
  3. FrX_

    FrX_ Peon

    Messages:
    52
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4563
    It was ages since the last time i used php , anyway try this , it might work (from the script your provided its going to be some things like this)

    <?php
    $country = geoip_country_code_by_name($_SERVER["REMOTE_ADDR"]);
    if (($country == "CN") or ($country == "IR") or ($country == "SA")) 
    { 
    header( 'Location: http://China-Iran-Saudia-Arabic-WebSite.com' ) ;
    }
    ?>
    PHP:

    btw IR = Iran , CN = China and SA = Saudi Arabia , So if you don't want to block them remove 'or ($country == "SA")'

    -=-=-=-=-=-=-=-=-

    Could anyone give me a feedback/reviewing my new proxy please?
    SSL Proxy: https://pSector.info
    Non-SSL : http://pSector.info
    Old Proxy : https://eCrossX.com

    Any hints/tips are appreciated :)
     
    FrX_, Jan 31, 2008 IP
  4. newzone

    newzone Well-Known Member

    Messages:
    2,865
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    135
    Digital Goods:
    1
    #4564

    your sites take to load forever from my location , i waited more than 40 seconds and not loading ...
     
    newzone, Jan 31, 2008 IP
  5. Napoleon

    Napoleon Peon

    Messages:
    732
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #4565
    Isn't it ironic that the sites supposed to unblock websites block visitors from certain countries?:p
     
    Napoleon, Jan 31, 2008 IP
  6. newzone

    newzone Well-Known Member

    Messages:
    2,865
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    135
    Digital Goods:
    1
    #4566
    it is , we do what with do for profit , because a proxy should be for all people and guarantee to all the freedom of browsing the internet especially in countries where the gouvernement don't allow it
     
    newzone, Jan 31, 2008 IP
  7. kaung

    kaung Twitter @KaungKo

    Messages:
    4,040
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    155
    #4567
    well certain countries make most proxy owners got smart priced by adsense.
    So to avoid it is better off to block them

    But there are still many more proxies allowing all traffic.

    it takes extremely long to load. VERY long.
     
    kaung, Jan 31, 2008 IP
  8. newzone

    newzone Well-Known Member

    Messages:
    2,865
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    135
    Digital Goods:
    1
    #4568
    now are working fine
     
    newzone, Jan 31, 2008 IP
  9. kaung

    kaung Twitter @KaungKo

    Messages:
    4,040
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    155
    #4569
    of course.. they are cached once you're access it.

    but it'll be a bit hard for first time users to access and not to get wrong impression about access.
     
    kaung, Jan 31, 2008 IP
  10. Mr.Bill

    Mr.Bill Well-Known Member

    Messages:
    2,818
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    160
    #4570
    Nice one will send them all to the homeland security home page.
     
    Mr.Bill, Jan 31, 2008 IP
  11. kaung

    kaung Twitter @KaungKo

    Messages:
    4,040
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    155
    #4571
    as for blocking ip, if you own an dedicated server or a vps, you can also go to your firewall and simply block them.
    Hassle free for going through each site.
     
    kaung, Jan 31, 2008 IP
  12. bquast

    bquast Active Member

    Messages:
    275
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    78
    #4572
    now that is funny
     
    bquast, Jan 31, 2008 IP
  13. greenfday6

    greenfday6 Member

    Messages:
    83
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #4573
    Hey guys, I have been working the last few days to get a Proxy site up. I don't have adsense yet, i'm working on that. I do have Adbrite. My question is, do I need to make a new "zone" for each ad spot on my proxy, and also do I need to make a new "zone" for each site. Right now I have a banner toward the top of the main page and the same banner at the top of the proxy page. Check my sig for the sites.
    Thanks
     
    greenfday6, Jan 31, 2008 IP
  14. sweetangel

    sweetangel Peon

    Messages:
    1,383
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #4574
    what's the difference with the glype script and php proxy? which is better?
     
    sweetangel, Jan 31, 2008 IP
  15. Jarmas

    Jarmas Banned

    Messages:
    417
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4575
    Generally speaking, no you dont need to. You can simply use the same code on all your ad zones and on all your sites. However 1 thing I notice about adbrite is the higher amount of impressions you drive them per zone from proxies, they begin to lower your eCPM to as low as $0.002 which is crazily pathetic. Ever since I separate them into individual zones things got better and eCPM went up to about $0.03.
     
    Jarmas, Jan 31, 2008 IP
  16. kingjacob

    kingjacob Peon

    Messages:
    905
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #4576
    Of course If you were smart instead of blocking chinese and other cheap traffic countries youd simply display adbrite or something else on the front page instead of adsense for all "cheap" Ips.
     
    kingjacob, Jan 31, 2008 IP
  17. tradester

    tradester Well-Known Member

    Messages:
    2,499
    Likes Received:
    98
    Best Answers:
    0
    Trophy Points:
    138
    #4577
    OK, another question
    What is good content to add to proxies?
    I see some proxy script modified to add Youtube , videos etc or proxy related articles
    How effective are such additional content? :D
     
    tradester, Jan 31, 2008 IP
  18. Dollar

    Dollar Active Member

    Messages:
    2,598
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    90
    #4578

    Content on the homepage? Well you certainly don't want such anything to distract and "leak" out your traffic.
    So keep them minimal. An RSS might help the Googlebot give you better ads.
     
    Dollar, Jan 31, 2008 IP
  19. ColorWP.com

    ColorWP.com Notable Member

    Messages:
    3,121
    Likes Received:
    100
    Best Answers:
    1
    Trophy Points:
    270
    #4579
    I have asked AdBrite support on this issue and here is what I got in reply:
    So, yes you can use one ad zone for each of your sites.

    Glype, because it is developed constantly and PHP Proxy stopped development.
     
    ColorWP.com, Feb 1, 2008 IP
  20. gsv13

    gsv13 Well-Known Member

    Messages:
    2,773
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    130
    #4580
    how can this be done?
     
    gsv13, Feb 1, 2008 IP