Get Paid to Participate - up to $1 per post!     Twitter     Facebook     Google+
Hosting Discussion
 

forgot password?



Reply


Old
  Post #1 (permalink)   06-28-2011, 03:03 AM
HD Newbie
 
Join Date: May 2011
Posts: 5

Status: kolumneya is offline
Hello,
is there anyway that provide custom ip range in .htaccess for Allow from ?
for exampel following range :
10.0.0.140-10.0.0.190
 
 
 


Old
  Post #2 (permalink)   07-06-2011, 12:05 PM
HD Newbie
 
Join Date: Jul 2011
Posts: 7

Status: Lee-RackSRV is offline
Hello,

Simply allow the network as follows:

allow from 10.0.0.

I'm afraid I'm unaware of a more verbose method of allowing a specific range of IP's.

Hope this helps!
 
 


Old
  Post #3 (permalink)   08-03-2011, 11:48 AM
HD Amateur
 
Join Date: Aug 2011
Location: India
Posts: 73

Status: ultimatewebhost is offline
Quote:
Originally Posted by kolumneya View Post
Hello,
is there anyway that provide custom ip range in .htaccess for Allow from ?
for exampel following range :
10.0.0.140-10.0.0.190
But what would you want to do that? Instead allow specific IP's allowing IP ranges can cause security threats, you just don't want to provide access to anyone, eventually when you don't know who's using those IP's.
 
 
 


Old
  Post #4 (permalink)   08-03-2011, 05:53 PM
HD Wizard
 
Join Date: Mar 2005
Location: Atlanta, GA
Posts: 2,264

Status: handsonhosting is offline
http://billing.handsonwebhosting.com...article&id=195
Code:
If you want to block a RANGE of IP numbers, you can use the following:
order allow,deny 
deny from 66.98.125.222-240 
allow from all.
This will DENY access to anyone with the IP numbers 66.98.125.222 through 66.98.125.240. You
So the same is true of the ALLOW.. just change the wording from "allow" to "deny" and vice versa.

We do this here on a number of our internal IPs for when we're testing sites etc.
__________________
Emerson Nogueira
http://www.HandsOnWebHosting.com
cPanel Web Hosting, Domain Registration, Managed VPS Servers
 
 
 


Old
  Post #5 (permalink)   08-04-2011, 01:21 AM
HD Addict
 
Join Date: Nov 2010
Posts: 146

Status: hostloc is offline
Quote:
Originally Posted by handsonhosting View Post
http://billing.handsonwebhosting.com...article&id=195
Code:
If you want to block a RANGE of IP numbers, you can use the following:
order allow,deny 
deny from 66.98.125.222-240 
allow from all.
This will DENY access to anyone with the IP numbers 66.98.125.222 through 66.98.125.240. You
So the same is true of the ALLOW.. just change the wording from "allow" to "deny" and vice versa.

We do this here on a number of our internal IPs for when we're testing sites etc.
That's great information!
__________________
Hosting Reviews | Hosting Coupon
Find the most suitable web hosting for your site
 
 
 


Old
  Post #6 (permalink)   08-05-2011, 09:48 AM
HD Newbie
 
Join Date: Aug 2011
Posts: 31

Status: DedicatedNow is offline
Hello,

Won't IPTABLES do the same thing and be cleaner?
 
 
 


Old
  Post #7 (permalink)   08-05-2011, 10:59 AM
HD Wizard
 
Join Date: Mar 2005
Location: Atlanta, GA
Posts: 2,264

Status: handsonhosting is offline
Will it be cleaner? Yes as you're stopping it at the firewall, however the original poster asked specifically for .htaccess allow.

Can you do all this on a firewall and in IPTables, yes, but many people do not have access to firewall systems and instead must resolve with .htaccess information.
__________________
Emerson Nogueira
http://www.HandsOnWebHosting.com
cPanel Web Hosting, Domain Registration, Managed VPS Servers
 
 
 


Old
  Post #8 (permalink)   08-19-2011, 03:01 PM
HD Amateur
 
Join Date: Oct 2010
Posts: 62

Status: bighost is offline
I haven't seen a single VPS/dedicated server w/o iptables access yet. Probably you mean shared web-hosting?
__________________
BIGHOST.LV: fast and reliable offshore hosting 100% confidential hosting and domain registration.
SERVERIA.COM: top secret servers TOP SECRET servers.
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: