Simple Proxy Whitelist Script

Discussion in 'Programming' started by Davey Crocket, Feb 22, 2009.

  1. #1
    I am currently using the code in the .htaccess file for a site but some users who are using mobile broadband are having trouble access my site. I need someone to modify the code below so I can whitelist certain ips so that the code will not apply to them. For instance if someones ip is 234.23.345. I would simply enter in their ip address and the script wouldn't excute for them. If interested please let me know your cost.. payment is via paypal.

     
    Davey Crocket, Feb 22, 2009 IP
  2. kind_of_the_cash

    kind_of_the_cash Active Member

    Messages:
    852
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    85
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Can you send me brief description ?
     
    kind_of_the_cash, Feb 22, 2009 IP
  3. Davey Crocket

    Davey Crocket Well-Known Member

    Messages:
    690
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    128
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    To clear up confusion I need a script that allows certain ips in conjunction with the code posted above.
     
    Davey Crocket, Feb 22, 2009 IP
  4. austin-G

    austin-G Peon

    Messages:
    435
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    So basically if the ip address is on the list, it will bypass the .htaccess rules? I'm not sure if this is possible. You would probably need someone to write a different .htaccess.
     
    austin-G, Feb 22, 2009 IP
  5. Davey Crocket

    Davey Crocket Well-Known Member

    Messages:
    690
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    128
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Yes that is correct. If you need to totally rewrite the .htaccess that is fine.
     
    Davey Crocket, Feb 22, 2009 IP
  6. austin-G

    austin-G Peon

    Messages:
    435
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    How many ips would you need to whitelist?

    You could just do:

    RewriteCond %{remote_addr} !^xxx\.xxx\.xx\.xx
    Code (markup):
     
    austin-G, Feb 22, 2009 IP
  7. Davey Crocket

    Davey Crocket Well-Known Member

    Messages:
    690
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    128
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    I probably need to add about 10 ips.
    so I could list them like this?

    RewriteCond %{remote_addr} !^xxx\.xxx\.xx\.xx
    RewriteCond %{remote_addr} !^xxx\.xxx\.xx\.xx
    RewriteCond %{remote_addr} !^xxx\.xxx\.xx\.xx
     
    Davey Crocket, Feb 23, 2009 IP