Vitavonni

Fri, 08 Oct 2004

Image linking again

Joey Hess commented on the image linking issue.

I don't care much myself (yet, maybe). But others do care. Especially when it makes a bigger amount of traffic (you might have to pay for) just for some Warez-kiddies linking the movie-poster in their warez-forum. You maybe do not want them to link you at all.

Blogging in german / Bloggen in Deutsch

Ich werde jetzt auch gelegentlich in Deutsch bloggen. Dazu habe ich mein Blog ziemlich umorganisiert. Wenn Ihr nur die Englischen Einträge wollt, dann könnt ihr diese über den RSS-Feed http://blog.drinsama.de/erich/en/index.rss bekommen, entsprechend die Deutschen über http://blog.drinsama.de/erich/de/index.rss oder alle über http://blog.drinsama.de/erich/index.rss

I'm going to blog a bit in german, too. For this i restructured my blog a lot. If you want to get only the englisch entries, please use the feed location http://blog.drinsama.de/erich/en/index.rss

You can also get only the german entries using http://blog.drinsama.de/erich/de/index.rss, or all there is using http://blog.drinsama.de/erich/index.rss

[category: /de | Permalink]

Blog migration from blosxom to pyblosxom

Today i migrated from blosxom (perl version) to pyblosxom (python version)

Apart from some layout issues of the wiki formatter (doesn't to itemizations or preformatted, but i can probably just re-edit these entries and use HTML) this went fairly well.

The multiuser modifications i had made to blosxom were easy to make in python, too (well, reading an env-var set by mod-rewrite is easy, and getting the homedir for a user isn't hard either)

The biggest part was to make the entries keep their GUID. I hope i manage to avoid trashing planet.debian.org this way... don't flame me otherwise: i did try not to do so. If you are interested in the code, contact me. The principle is basic: if for an entry coming from "filename" a file named "filename.guid" is found, the first line is read and used as guid for the entry. Then the rss2 renderer checks this guid variable and uses it if present. Otherwise it will fall back to the traditional generation fo guids.

Non-german speakers will want to change my feed location from http://blog.drinsama.de/erich/index.rss to http://blog.drinsama.de/erich/en/index.rss to just get the english entries.

[category: /en | Permalink]

Preventing image linking: avoid side effects

Lars Wirzenius recently [http://liw.iki.fi/liw/log/2004-10.html#20041007b blogged about preventing image linking]. I helped a friend setup this for his [http://www.moviemaze.de/ Movie pages].

There are several tarpits you can run into. Most notably some "smart" web privacy tools such as outpost will not just empty your referrer field, but place some bogus data in there "Field blocked by Output" or so.

Therefore i suggest only blocking links that come from offsite-locations that do start with http://

It is also a nice thing to actually send a warning image then, instead of just dening access. This makes the linking site uglier, and maybe someone will tell the referrer that he has "stolen pictures" on his site.

Because usually the one linking you will NOT get the error message due to caches. He probably found the image on your site, loaded it into his browser cache with a valid referrer, then included it on his page and still can see it just fine.

Also I suggest only applying this to some directory. You'll want a way to include a image in your blog posts and have it being displayed in sites such as planet.debian.org correctly.

Menu
[planet.debian]
[planet.xmlhack]
[planet SELinux]
[munichblogs]
[email]
[RSS 2 feed]
[English RSS 2]
Categories
< October 2004 >
SuMoTuWeThFrSa
      1 2
3 4 5 6 7 8 9
10111213141516
17181920212223
24252627282930
31      
Archives
2010-Mar
2010-Feb
2010-Jan
2009-Dec
2009-Nov
2009-Oct
2009-Sep
2009-Aug
2009-Jul
2009-Jun
2009-May
2009-Apr
2009-Mar
2009-Feb
2009-Jan
2008-Dec
2008-Nov
2008-Oct
2008-Sep
2008-Aug
2008-Jul
2008-May
2008-Apr
2008-Mar
2008-Feb
2008-Jan
2007-Dec
2007-Nov
2007-Oct
2007-Sep
2007-Aug
2007-Jul
2007-Jun
2007-May
2007-Apr
2007-Mar
2007-Feb
2007-Jan
2006-Dec
2006-Nov
2006-Oct
2006-Sep
2006-Aug
2006-Jul
2006-Jun
2006-May
2006-Apr
2006-Mar
2006-Feb
2006-Jan
2005-Dec
2005-Nov
2005-Oct
2005-Sep
2005-Aug
2005-Jul
2005-Jun
2005-May
2005-Apr
2005-Mar
2005-Feb
2005-Jan
2004-Dec
2004-Nov
2004-Oct
2004-Sep
2004-Aug
2004-Jul
Other links:
Swing and the City - Lindy Hop in Munich