Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 07:18:03 PM

Pages: [1]   Go Down
  Print  
Author Topic: Will lots of entries in .htaccess slow site access down?  (Read 2842 times)
SillyBilly
Newbie
*
Offline Offline

Posts: 4


« on: November 26, 2009, 12:51:37 PM »

Hi,

title pretty much says it all really. currently receiving lots of forum registration requests from one country and came accross blockacountry.com which seems to fit the bill (captch already in place).

any pointers appreciated!

thanks for looking
Logged
MarkCale aka Madscape
Spaceship Navigator
*****
Offline Offline

Posts: 78



« Reply #1 on: November 26, 2009, 01:10:30 PM »

Any very high traffic can slow a site down or even the server. If, you site is going to very high traffic then if you are using a shared server plan you may need to upgrade to a package to compensate for the high traffic. There too many variables to say exactly what is slowing your site down. I tend to point out the factor of high traffic on a shared server plan being a key more than a VPS or dedicated account. Even though you are allowed a generous amount of bandwidth of a shared server account depending on what functions the site performs rather it would be the issue. Constant connections to sql database providing that there is more than 25 connections at a time being used can cause latency.

I do not see the .htaccess file causing latency unless you have called out directives that generally negate the purpose of the operation of the site. The .htaccess file can cause many things if not properly coded with the right directives.
Logged

Forum Lurker and Former Galactic Tekkie, mostly a jack of trades and master of none!  Mark H. Cale
SillyBilly
Newbie
*
Offline Offline

Posts: 4


« Reply #2 on: November 27, 2009, 08:03:27 AM »

hi,

thanks for the reply.

no performance issues at the moment; the requests are just time consuming to delete. I will look in to the htaccess rules.

Cheers,

Sillybilly
Logged
jimlongo
Intergalactic Superstar
*****
Offline Offline

Posts: 125



WWW
« Reply #3 on: December 31, 2009, 02:43:09 PM »

i have .htaccess directives that deny most of the world, and it doesn't seem to slow anything down.

Logged

rockprincess
Newbie
*
Offline Offline

Posts: 1


« Reply #4 on: January 18, 2010, 06:59:01 PM »

I agreed with jimlongo, it doesnt seem to slow my site down. But i would recommend http://www.ip2location.com/blockvisitorsbycountry.aspx as I noticed that they actually update their IP databases every month. But I have a question here, can I block a country but allow access for particular visitors from the blocked country?  Confused
Logged
DEddleman
Spacescooter Operator
*****
Offline Offline

Posts: 34


Elite!


« Reply #5 on: January 19, 2010, 11:44:57 PM »

Yes you can, just have a deny,allow statement in your .htaccess, then have your usual Deny From statement, then after all of those have an Allow From and the IPs/ranges you want to allow.

As a sidenote: depending upon your forum software, it may simply be easier to ban IPs/subnets in there than through .htaccess. vBulletin definitely lets you do this, other forum softwares do as well but I don't know how they do it.
Logged

MrPhil
Berserker Poster
*****
Offline Offline

Posts: 5083



« Reply #6 on: January 20, 2010, 08:39:02 AM »

SMF will also let you ban by IP address. Note that if you do the banning in the application, it's much more load on the system, as the request gets handled by your PHP code, rather than up at the server level. The usual advice is to move large numbers of bans out of an application and up to the .htaccess file.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to: