From: Stuart Brand Date: 2006-06-05T23:45:30+09:00 Subject: Re: New webserver Thanks all, this worked fine def self.path(path) fileLine = path[1].strip fileLine = fileLine.gsub(/\.\//, '') fileLine = fileLine.gsub(/\/\./, '') fileLine = fileLine.gsub(/\\/, '') fileLine = fileLine.gsub(/\.{2,}/, '') fileLine = fileLine.gsub(/\/{2,}/, '') fileLine = "/srv/www/htdocs/" + fileLine return fileLine end Is there a way of making it look prettier? I'm trying to stop people using the address bar to access parts of the system the should not Many thanks all Stuart -- Posted via http://www.ruby-forum.com/.