How Can I Set A Website to Only Allow Certain IP's?

United States
July 17, 2008 9:25pm CST
I'm setting up a site where I want it to only be viewed by certain IP addresses. Do you guys know any website where I can make my content only viewable to certain IP addresses that I enter? I'm selling a product and I'm worried about people giving away or selling their accounts once they are done with what they paid for. To eliminate this, since their is no need for an account, I'd like to make it so I can make a list of the allowed IP addresses. Any help is appreciated. Best response goes to the first person to make this happen.
1 person likes this
2 responses
@1337speak (170)
• Philippines
18 Jul 08
I'm not a coder, but I believe it is possible using a server-side script. If you can link the registering IP address to the username in the database. Or if you have physical access to the server you may configure the ACL of your firewall or of Apache. The only problem with such implementation is the use of proxys, dynamic IPs, VPNs... By the way, x10hosting is a webhost with a lot of server features. You may be able to implement the methodology using that host. Best of luck!
2 people like this
• Philippines
18 Jul 08
Proxys can be a problem because it's a security risk on your side. If you do add a proxy into your IP list thinking it is a regular user, the person can simply sell the account and provide instruction on how to use the proxy rendering your security measure useless. So far, I haven't seen free programs or services that implement the features you described. If you want, you may find coders that can code for you for a small fee at eLance or getafreelancer.
2 people like this
• United States
18 Jul 08
I'm not sure if I'll even make enough to justify buying a coder though. I don't think anybody would be smart enough to use a proxy as it's largely focused on a younger audience of 13-18.
1 person likes this
@ferdzNK (3211)
• Philippines
19 Jul 08
The only effective way to control or filter this is on your source which is the server side. If you are renting a site, I cannot see where a proxy can be inserted there. Having a script with in the page is to easy work around with.
• Indonesia
18 Jul 08
im agree with above..or u can filtering some IP address connection by using some software, i guess there's lot of software that can filtering some IP.
1 person likes this
• United States
18 Jul 08
Any suggestions as to where to look for such software?