Linux

Using IPTables to Block Referer Spam

I hate getting referrer spam. While I know that referrer spam is a fact of life for anybody hosting a website, I hate seeing my logs filled with crap. Being proactive about this log-jacking is hard, but I like doing something about it anyway.

The great firewall against China

Just as I finished writing about a new age of comment and trackback openness I checked my IPTables logs and am greeted by a nice surprise from an IP address from ChinaNet. My system received about a thousand connection attempts to ports between 1024 and 2048. Mind you, these are ports no external system has any business accessing. Nevermind that nobody in China is authorized to access my system.

Since ChinaNet seems to be more amenable to allowing anyone to use their network for mischief I don't see why they deserve access to my site.

Here are the relevant IPTables directives:


# CHINANET #
-A INPUT -m iprange --src-range 218.13.0.0-218.18.255.255 -i eth0 -p tcp -m tcp -j DROP
-A INPUT -m iprange --src-range 220.181.0.0-220.181.255.255 -i eth0 -p tcp -m tcp -j DROP

snap.com has been very very bad

Snapbot/1.0 keeps hitting my site several times a day, for no good reason. Everytime it hits me it hits robots.txt twice. I might be a bit hypersensitive, but having my site crawled over and over, only for the latest screendump of my site is lame. To make it better, when searching for steamedpenguin on snap.com you get an old screengrab. snap.com = lame.

Since their bot sucks as much as snap.com does I added the IP range 38.98.19.0-38.98.19.255 to my drop list. I love IPTables!

Ugliness Creeps Across the Web

So after letting the Netscape brand languish, firing the Netscape development team, and letting their browser division go to seed, AOL/Time Warner/Who-the-fuck-knows-what-the-name-is decides it wants a new browser. So they hire a team and today they released a public beta.

Naturally as a denizen of the world weird web I want to keep tabs on things. After all, some poor schmoe might actually install this software and access sites I design. Except for one problem. I don't use Wintendo, err, Windows. What's a geek to do?

Then I remember, I have WINE installed on my Linux workstation. Now WINE Is Not an Emulator, it is a software compatibility layer that lets Windows programs natively run under linux. This is a very cool thing indeed. So I download Netscape 8 beta and try to install it. Hey, it installs just fine. So now I am excited, maybe I can even use the Trident rendering engine Internet Explorer uses and test more web sites.

After installation finishes I get this as my first glimpse:

Netscape 8 Beta 00Netscape 8 Beta 00

At this stage my eyes spontaneously exploded onto my screen and keyboard. After picking up the pieces and getting myself patched up I came back to my computer, sat down and very quietly and reasonably started to curse the fucking hell out of the designer that created the user interface for that piece of shit. Oh my fucking god what were you thinking? I understand that some jobs we do because we get paid for them, but jesus! What demon did you sell your soul to in order to create such a monstrosity? Rot your eye and may your finger turn to rubber so that you never ever touch a keyboard or a mouse whoever the fuck you are.

Next I calmly checked what happens after I click on the dialog button:

Netscape 8 Beta 01Netscape 8 Beta 01

Ok, so I get an error dialog. Something about files missing. Hey considering that this is a Windows program running on Linux I ain't complaining. So what happens next?

Netscape 8 Beta 02Netscape 8 Beta 02

So it appears that Trident is not packaged with Netscape 8 but that it uses the IE rendering engine present on a Windows system. That makes sense. If you had to bundle IE with Netscape you could come up with installer sizes that are bigger than whole operating systems. As it is the installer for Netscape 8 exceeds the size for Firefox by about three megabytes. For what? For a UI that'll make your eyes bleed like pigs at the slaughterhouse. I digress and all that.

After I cleared the last two dialogs Netscape 8 crashed and spared my eyes the last of the strain.

My advice is if you are looking for a browsing experience on Windows the get Firefox. Fast, secure, and much more professional looking than the franken-browser called Netscape 8.

Syndicate content