PDA

View Full Version : .htaccess question


SID MAN
01-14-2001, 04:52 AM
I need to allow access from a ton of ip's to my members area.

I hope you can help me out here, will this .htaccess file work ??

=============================================

order deny,allow
deny from all

allow from 202.139.119.0 to 202.139.119.256
allow from 202.139.171.0 to 202.139.171.256
allow from 209.208.250.0 to 209.208.250.256
allow from 194.133.124.0 to 194.133.124.256
allow from 207.35.155.0 to 207.35.155.256
allow from 195.13.105.0 to 195.13.105.256
allow from 213.253.128.0 to 213.253.128.256
allow from 213.253.129.0 to 213.253.129.256
allow from 212.90.37.0 to 212.90.37.256

========================================


Or do I have to specify each IP ??
or

Shannon
01-14-2001, 06:47 AM
no it wont - do it like this...

allow from 202.139.119.0/256
allow from 202.139.171.0/256
allow from 209.208.250.0/256
allow from 194.133.124.0/256
allow from 207.35.155.0/256
allow from 195.13.105.0/256
allow from 213.253.128.0/256
allow from 213.253.129.0/256
allow from 212.90.37.0/256

And I am 99.9% sure that ip's only go up to .255, so the .256 may give you some issues.

Best of luck http://bbs.adultwebmasterinfo.com/ubb/smile.gif

SID MAN
01-14-2001, 06:54 AM
Thanks Shannon - You saved me two hours of typing ;-)

Thanks man

TwinTone
01-14-2001, 10:08 AM
You can be 100% sure.. IP do only go up to 255.

magnatique
01-14-2001, 11:49 AM
an ip is 4 bytes....
it's 2^8 where 0 is the first one... 256 combinations.... for one byte

am I wrong?

Shannon
01-14-2001, 01:15 PM
SID MAN - No problem, if you have any problems configuring it, feel free to shoot your.htaccess file over and I'll configure it for you & shoot it back your way.
webmaster@blacksexpics.net

Best of luck http://bbs.adultwebmasterinfo.com/ubb/smile.gif

Robert
01-15-2001, 05:27 AM
Shannon - dont you know where can I find some good .htaccess documentetion?
thanks

Shannon
01-15-2001, 06:41 AM
Robert - Not really, but heres a cool little page that has a few of the most common functions poeple want to achieve with htaccess.
www.uswebsites.com/support/htaccess.shtml (http://www.uswebsites.com/support/htaccess.shtml)

I would check out www.apache.org (http://www.apache.org) and do a search for htaccess if you want to get down to the nuts and bolts of it and how it works on conjuction with your different mod's.

Best of luck http://bbs.adultwebmasterinfo.com/ubb/smile.gif

Robert
01-15-2001, 06:49 AM
thanks a lot

Jimbo
01-15-2001, 03:41 PM
Mag: You're right... so if it starts at 0 it ends at 255 http://bbs.adultwebmasterinfo.com/ubb/smile.gif

magnatique
01-15-2001, 08:26 PM
of course i'm right http://bbs.adultwebmasterinfo.com/ubb/smile.gif

that's the only thing I learned in my "intro to computers" class I had last semester LOL

SID MAN
01-16-2001, 02:25 AM
Thanks for all your help.....

I talked to a few dialer companies, and they advice me to run two different members area(Just a copy of the excisting membersarea), because the surfers can log of the dialer and stay on the members area using their normal connection ??

Shannon, I will give it a go, and see if I can make it work....Thanks man...