
I have long had trouble from spammers from various parts of the world and determined that I would find a way to counter their activities. Well, experience being what it is, I found that security solutions often come in the form of multiple techniques, layered together in swatches to form barriers to most Internet pests. The first of these techniques I will discuss today falls into the realm of using the I.P. address of a visitor to determine their rough geographic coordinates. The Internet, as it exists today, uses the IPV4 address space to map out regions of the planet into zones of internet address blocks that are allocated to regions and countries. If one looks to the page at http://www.iana.org/assignments/ipv4-address-space, one can use the major octet (The starting number of a IP address) to get the roughest of ideas of where someone hails from.
Now, as a Pagan web site, I know my audience is mostly located in Western countries. Not *all* of the time, but most of the time. So, knowing from my logs who the worst offenders are in terms of systems abuse and such, usually the Chinese, Russian and South American countries as well as pretty much all of Indonesia, I can reasonably decide to block only on the major octet. Now this is the most primitive of screening methods, but if your requirements are met by screening out this way, then your .htaccess file can by modified to have "deny from 218" for example, which takes out an entire block of addresses from Asia.




You know, I'm a pretty even-tempered guy. But when a bunch of Russian thugs attack my site with their constant barrage of spambots and then ultimately, send out solicitations on the chat panels to our users to send their email addresses in to the spammer so he'll stop spamming you, then that does it for me.
It often escapes most people that there are two hemispheres to this world and that if one is in Winter, the other is in Summer. Six months later, the inverse is true.
We've enabled the forums to start encouraging the use of this site as a primary forum and discussion area to swap stories, techniques and ideas related to website design, security and operating methods/philosophies.
One of the challenges of running a web site is to pay particular attention to the log entries affecting your computer.
I'm guilty of it myself... Not taking care of I site I built! In this case, it was to leave to take care of family in a medical emergency, and dropping the care of my site for a number of months.
NOTE: On January 20'th, this site was upgraded as a direct response to the comment spammer attacks that caused serious damage to the site.
One of the more requested scripts that I've received letters about is how to determine the start of each of the seasons and how to display that on your site.
If you are as big of a fan of the moon as I am, then you have probably scoured the web high and low for great scripts to compute lunar phases.