How To Keep a Web Site Local?
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?"
...I doubt Slashdot can make a good assessment without taking a look at the site. Mind posting the URL?
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'.
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.
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!"
Rampant carbon sequestration destroyed the Dinosaurs' tropical paradise. I'm here to help repair the damage.
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.
or so I have been told here on slashdot.
PS. Apple users suck.
Best to only apply this restriction to account evolution.
Fixed that for y... wait, what?
Now, my Web-based board gets slammed by people from all over the world
Have you never wondered what "www" stands for?
"Wise men talk because they have something to say; fools, because they have to say something" - Plato
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.
"City hall" in German is "Rathaus" Kinda explains a few things......
iptables -A INPUT -s ! 192.168.0.0/16 -j DROP
That should keep those pesky non-locals out. ;)
biopowered.co.uk - catalytically cracking triglycerides for home automotive use since 2008. Just say no to big oil!
I'm on the 10.0.0.0 network, you insensitive clod! :)
Serious? Seriousness is well above my pay grade.
With twelfty sub-pages in the store, and twelfty links on each, what more do you need?
iptables -A INPUT -s ! 127.0.0.0/8 -j DROP
That should keep those pesky non-locals out. ;)
There, fixed that for you.
Usage: km/h for speed (kilometers per hour); kph for very slow impulses (kilopond hours).