Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Apr 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    htaccess/proxies

    Ok i grabbed a massive list of proxies (Like 7k+) but what im wanting to do is be able to ban them, i know i can do this with htaccess but is this really a good way of doing it, should i add it to a mysql table and check it then or just add them to the banned list as i find them or is it worth the time and lag it may cause?

    any suggestions on what the best move is here?

  • #2
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,100
    Thanks
    2
    Thanked 23 Times in 23 Posts
    You'll probably get your best results using .htaccess. If applicable to your situation, you can ban by blocks of IP addresses via .htaccess, which would be more efficient than writing code to query a database and ban that way.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #3
    New Coder
    Join Date
    Apr 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Would the size of the banned ip list cause a lot of lag?

  • #4
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,100
    Thanks
    2
    Thanked 23 Times in 23 Posts
    I wouldn't think so.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #5
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Quote Originally Posted by Locked View Post
    Would the size of the banned ip list cause a lot of lag?
    It shouldn't and in the MySQL case, you'd be doing a query looking to see if the user's IP is in the table which wouldn't take very long at all.
    OracleGuy

  • #6
    New Coder
    Join Date
    Apr 2007
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the replys , the forum helps quite a bit even if just reading up on the ways others do their code.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •