SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2002
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .htaccess Server Performance question?

    Hi,

    I am trying to allow only people from certain domains or ip addresses to have access to my website. I want it to prevent all other domains from accessing it.

    I have done it using .htaccess however I am worried that the
    size of my .htaccess file could slow down the server since it lists over 500 domains/ipaddresses to allow access from.

    My question is this:
    Does listing over 500 domains in an htaccess file slow down performance of the server (I am on a Webhost shared server) ?

    If so, by how much?

    Thanks in advance
    Mike

  2. #2
    FreeBSD The Power to Serve silver trophy pippo's Avatar
    Join Date
    Jul 2001
    Location
    Italy
    Posts
    4,514
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    >> How much ?
    Boh!

    If I were you I will make a script that calculate the elapsed time foreach access.
    Scoates did a script to calculate the elapsed time and he showed it in a thread,
    but I didn't remember the thread though!
    The script was done in php.
    So you could try to put just few directives in .htaccess and make an average, then try to add all directives and then make an average.
    Compare the two results and you will have the answer.

    That's what I would do.


    pippo

    *** edited ***
    p.s.
    The thread I was referring to is
    http://www.sitepointforums.com/showt...threadid=74375
    Last edited by pippo; Sep 10, 2002 at 23:33.
    Mr Andrea
    Former Hosting Team Advisor
    Former Advisor of '03


Bookmarks

Posting Permissions

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