Keep people from linking to your images

The IRS scam email below links to the IRS logo, on the IRS website itself! The government could avoid having its own bandwidth used for scams by adding some rewrite rules in Apache.

When I saw some of my photos being linked from other websites (usually forum-type sites that don’t provide their users the ability to upload their own files), I decided I didn’t want to foot the bill to host images shown on other websites. I followed this great tutorial and implemented my own RewriteRules, which have worked like a charm:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !no-direct-links\.png [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?markturner\.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?planettrilug\.org/.*$ [NC]
RewriteCond %{HTTP_REFERER} !google\. [NC]
RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]
RewriteRule (.*) http://www.markturner.net/wp-content/no-direct-links.png [R,NC,L]

These rules allow images to appear on my website, the PlanetTrilug website, and Google’s image searches, but any other sites linking directly to my images get a “No Direct Links” image instead.

I am pretty easygoing with the use of my images (many of them donated to the public domain), but hosting them for other sites costs me money. If you would like to post one of my images on your website, if it’s a public domain (or Creative Commons) one feel free! If it is not, shoot me an email and let me know your plans. Whatever you do, though, please use your own server. Don’t link directly to my images. Thanks!

5,000th post!

I just checked the official MT.Net counter and this marks my 5,000th blog post ever! That’s 500 posts per year for almost ten years (November 24th marks my decade blogging anniversary).

Thanks to all of my readers who’ve found something useful in what I write. And here’s to many more years of blogging!

Coffee and Google hits

I decided to wade into Google’s Webmaster Tools tonight, just to see how Google sees ol’ MT.Net. As typically happens on these adventures, I was amazed at what I learned.

One thing I never appreciated when I first began blogging is the power of images to attract web hits. I take hundreds of photos each week, and my lazy nature dictates that I often don’t bother naming them something descriptive: I simply copy them to the blog and assume the visitor will figure it out. Of course, web spiders, search engines, and the like cannot make sense of images, so services such as Google’s Image Search (GIS) must rely on metadata, filenames, and other information to properly index the images it finds. The long and the short of it is that my search hits have increased dramatically now that I’ve been giving more descriptive names to my images.

Tonight I discovered that my blog is one of the top hits for the “coffee” image search. My site earned 22,000 impressions from that term, leading visitors to my musing about the power of coffee.

Attached to that post was a wonderful image I obtained from Wikimedia Commons taken by Julius Schorzman (and seen above). Julius’s Creative Commons license stated that I did not have to attribute the photograph to him provided it was used on a non-profit site.

MT.Net is still free and worth every penny. Regardless, in light of the image’s popularity in GIS, I want to give credit where it’s due and thank Julius for allowing me to use his image.

AOL Mail is hopelessly FUBAR

You've got stupid!

I swear, the folks running AOL Mail couldn’t find their asses with both hands and a flashlight.

First, they lose their customers’ email in a huge crash, taking until yesterday to restore the email archives of users. Then in the middle of this disaster, they mistakenly flag my mailserver on their spam list. Only one anti-spam list (Barracuda Network’s) out of a dozen showed my server as blacklisted, but that was enough to kick me off of many services, as I said before. Barracuda immediately cleared my server but AOL continued to show it as a spam source. When I learned that a friend’s mailserver had also been mistakenly blacklisted, I grew more concerned.
Continue reading

Could the Internet be shut down in US?

Wally Bowen of the Mountain Area Internet Network ponders whether the U.S. could be cut off from the Internet the way Egypt was.

After seeing what some anti-spam servers can do, I can say wholeheartedly that it can.

On National Public Radio last Saturday, host Scott Simon opined that a “central shutdown” of the Internet as occurred in Egypt was “unthinkable if not impossible” in the United States given the “thousands of Internet routes and providers” here.

Simon noted that Egypt’s four primary Internet service providers could be shut down “with just a few phone calls.” But the U.S. has only four companies — Comcast, Time-Warner, AT&T and Verizon — controlling most of our broadband access. More than 90 percent of U.S. broadband users have only one or two providers, a cable or telephone company, to choose from.

via Could the Internet be shut down in US? | citizen-times.com | Asheville Citizen-Times.

Email extortion?

Get out of jail free ... err, for $20

Somehow, the hosted server I use for my mailing lists has gotten flagged by Barracuda Networks as being a source of spam. This means I can no longer send email to my neighbors with att.net (or Bellsouth.net), aol.com, or Time Warner email addresses.

The idea that I would spam is of course absurd (as these two RBL checkers can confirm) but because I’ve been working with spam and “realtime black hole” lists for years I understand that false positives can sometimes occur.

What galls me about Barracuda’s approach is their proposed solution: fork over $20 per year per domain and we’ll never accuse you again. It smacks of extortion.

To Barracuda’s credit, they did promptly remove my IP from their “poor reputation” list and this change will presumably percolate to the big-name ISPs which use Barracuda products. Still, it’s an eye-opening example of what can happen to the Internet when resources are concentrated in the hands of a few companies.

Fully open-source video streaming

I found the missing link today for my open-source video streaming project: Xuggle. The Xuggle project includes a version of ffmpeg which can RTMP-stream to the red5 server.

Well, sorta. The red5 server needs to be patched in order to work with Xuggle, An exception occurs otherwise. You grab the patch from here and patch the RTMPProtocolDecoder.java file.

Here’s the command line I use to get Xuggle’s ffmpeg to stream my USB webcam from Linux:

LD_LIBRARY_PATH=/usr/local/xuggler/lib /usr/local/xuggler/bin/ffmpeg -f video4linux2 -s 320×240 -r 15 -i /dev/video0 -f oss -ac 2 -i /dev/dsp1 -f flv rtmp://eddy.neusemedia.com/oflaDemo/streamname

Normally I would use ALSA to grab audio from the USB microphone but Xuggle’s ffmpeg binary wasn’t compiled with ALSA support. Fortunately, the OSS driver works fine.

Here’s the command I use to stream from my ieee1394 (also known as Firewire) video camera:

dvgrab – | LD_LIBRARY_PATH=/usr/local/xuggler/lib /usr/local/xuggler/bin/ffmpeg -f dv -i – -s 320×240 -r 15 -f flv -ar 22050 rtmp://eddy.neusemedia.com/oflaDemo/streamname

This takes audio from the DV camera, but if I wanted to take audio from the USB microphone (or the built-in microphone) I could put in a line like the first one.

The quality is absolutely outstanding! Even on my slow cable modem connection I can push 320×240 15fps video with 22KHz stereo audio to my server. On a beefier Internet connection (like the city’s network at the community center) I could dial it up to even higher quality.

So there you go. Other than the codec (which is not free “as in speech”), all the parts are free. The only cost is the hosting bandwidth. One thing I’d like to find is a good way to take this RTMP stream and push it out a high-quality video card for ingesting into the city’s cable access channel, if need be. That would turn this in to a great solution for the city’s RTN network to offer live coverage of city events. I’m also interested in an RTMFP solution so that the client plugins can share the bandwith, rather than having my server hammered when many people try to watch at once.

Now I know a lot of non-geeks are interested in getting their own streaming television, so I’ll get to work on writing up a howto with minimal jargon.

Shift colors

The new server is answering web requests now. Seems like most everything is in place but the mailserver stuff. That should be changed over shortly, too. If you try to email me but it gets bounced for any reason, please try again shortly. These DNS changes take some time to propagate through the Internet.

(The title of this post comes from the announcement made on a commissioned Navy vessel when it gets underway. The colors are flown from the fantail when the ship is docked and moved to the mast when the ship gets underway.)

Server switcheroo

In the next 24 hours or so I will switch MT.Net and other services over to a new server. If things go as planned you will not see any disruption in service.

I will likely throw the switch about 9 PM Monday evening.