How To Keep a Web Site Local? 297
Cornwallis writes "The universal accessibility of the Internet is one of its attractions. But what do you do when you don't want your board to be Slashdotted? Back in the day it was great to run a local BBS where friends and neighbors could dial in using their 9600-baud modems to pick up mail or share games or stories. Now, my Web-based board gets slammed by people from all over the world who have no reason to access it, can't possibly take advantage of the locally focused services it offers, and generally take up my time because I have to block their accounts or explain to them why they can't have access. This despite the fact that the board explains quite clearly that it is for local use only and couldn't possibly be of interest to them. Other than putting thousands of entries in my hosts file to block IP ranges, what options do I have to restrict access to locals only? Or isn't that feasible?"
Good question, but... (Score:5, Funny)
...I doubt Slashdot can make a good assessment without taking a look at the site. Mind posting the URL?
Link plz (Score:3, Funny)
Give us a link to the board, we need to have a look at it before we can properly assess the best way to 'keep it local'.
Re:.htaccess (Score:5, Funny)
ErrorDocument 403 "Sorry, this website is only available to people living in .
Or "This is a local website for local people. There's nothing for you here."
Or don't worry, what does it hurt if people who aren't benefiting from a website visit it?
They covet the precious things.
Re:.htaccess (Score:5, Funny)
Or "This is a local website for local people. There's nothing for you here."
Thankyou! I was hoping someone would say this. ;)
Bad login attempts should lead to an error page saying "What's all this shouting? We'll have no trouble here!"
Re:Good question, but... (Score:5, Funny)
Re:People travel. (Score:5, Funny)
Don't expect that your users stay in one place. Do expect that they sometimes travel to other countries.
I was going to suggest this, then realized his users are likely to be Americans.
Re:Good question, but... (Score:0, Funny)
Information wants to be free (Score:5, Funny)
or so I have been told here on slashdot.
PS. Apple users suck.
Re:Easier option (Score:5, Funny)
Best to only apply this restriction to account evolution.
Fixed that for y... wait, what?
www (Score:2, Funny)
Now, my Web-based board gets slammed by people from all over the world
Have you never wondered what "www" stands for?
Re:.htaccess (Score:4, Funny)
Or "This is a local website for local people. There's nothing for you here."
You are in a maze of twisty little web pages, all alike.
Re:.htaccess (Score:3, Funny)
iptables -A INPUT -s ! 192.168.0.0/16 -j DROP
That should keep those pesky non-locals out. ;)
Re:.htaccess (Score:5, Funny)
I'm on the 10.0.0.0 network, you insensitive clod! :)
Re:.htaccess (Score:2, Funny)
Re:.htaccess (Score:5, Funny)
iptables -A INPUT -s ! 127.0.0.0/8 -j DROP
That should keep those pesky non-locals out. ;)
There, fixed that for you.