Re: dynamic and static links
Does it matter if the link is the actual url or a dynamic link that leads to the site?
For SEO purposes plain links are best. The redirect might not be followed for one.
There are many other small reasons.
And can anyone recommend a free script for that? I found one or two, but it's not too impressive.
As far as I know there are none. All the semi-decent scripts I know of use a redirect to count the "hit".
What I suggest is that you modify an existing script to pull the plain URL from the database.
I'm experimenting with phpadsnew, but that doesn't have a directory.
phpadsnew is an ad server.
What you are looking for would be found under queries like:
portal (but you'll get lots of CMS results)
A free one I was looking at in the past (but never used) is LinksCaffe
The only other semi-decent free PHP script of this variety that I know of is PHP Links
If you want to mess around in Perl I know of another free one, but it uses flatfiles instead of a database, and flatfile databases are not very stable or scalable.
Note that all of these use a redirect. But this could probably easily be modified (I've never used this software, only evaluated it. So I do not know how and would probably not have time to look at their code).