Sunday, June 7, 2009

How to make store ftp passwords securely in filezilla

Filezilla which I use for ftp has the problem that saves the ftp passwords in plain text in windows.

If someone searches a bit, they can very easily see all the passwords for all the ftp locations you have stored to your computer.

In my windows pcs, to avoid prying eyes I am using an encrypted hard disc software (like pgpdisk or truecrypt). For various reasons I dont want to encrypt my whole disk, but I want to create a "hidden" disk, which I mount only when I want.

So, I wanted to put my ftp sites details (address/username/password) in the encrypted disk, and not where by default they were saved by filezilla.

The way to do this, is by editing a file called fzdefaults.xml which lives in the directory your filezilla gets executed (usually: "C:\Program Files\FileZilla FTP Client" )

At the end of the file there is a line like:
some location

You change this setting to the location you want, and thats it.

In my case, if someone opens filezilla without me having mounted the encrypted disk first, they just see an empty list of sites. They dont even know that I have an encrypted list.

Friday, June 5, 2009

Hack: How to use feedburner with kunena

I originally wrote this as a feature request at the kunena forum:

So, here is a hack that helps you replace your kunena rss with the equivelant feedburner.

1) You need first to get your kunena rss, and burn it to a feedburner feed and get the url.

2) You do 2 code changes.


1st code change:

file components/com_kunena/kunena.php around line 936, where it now says

$mainframe->addCustomHeadTag('<link rel="alternate" type="application/rss+xml" title="'._LISTCAT_RSS.'" href="'.sefRelToAbs(KUNENA_LIVEURLREL.'&amp;func=fb_rss&amp;no_html=1').'" />');

change to

$mainframe->addCustomHeadTag('<link rel="alternate" type="application/rss+xml" title="'._LISTCAT_RSS.'" href="http://feeds2.feedburner.com/mysite/rsslink" />');



2nd code change:
file components/com_kunena/lib/kunena.class.link.php, around line 60, where it now says

return CKunenaLink::GetSefHrefLink(KUNENA_LIVEURLREL.'&amp;func=fb_rss&amp;no_html=1', $name, '', $rel, '', '', 'target="_blank"');

change to
return '<a href="http://feeds2.feedburner.com/mysite/rsslink">' . $name . '</a>';



Note, this does not take care of your existing subscribers (who will continue using the old urls), but everyone new will be using the feedburner from now on.

There is also an additional trick that can take care of your preexisting subscribers, but I will do a seperate post for that.

(using kunena version 1.0.10)