PDA

View Full Version : Working around a firewall, javascript maybe?



KenJackson
11-28-2009, 10:00 AM
There's something I'm trying to do, but I can't figure out how.

I have some source code and other text files in a directory on a server inside my company's firewall that I want to make visible via a web page inside the company. But I can't move the files outside of the firewall, and I can't run a web sever inside the firewall.

Currently I have links like this:

<a href="file://///server/some/directory/module.c" type="text/plain">module source</a>
The page with the links is served external to the company, but the actual text file can't be retrieved unless you are viewing it on a computer that is inside the company. I'm neatly sidestepping bothersome rules, but I believe I'm not actually violating any rule.

But it doesn't work. Actually it does work in InternetExplorer, but by default Firefox doesn't allow file links like this to load. You can alter the configuration to make it work, but I don't want to have to make people mess with their configuration just to click on the link.

Is there a way, maybe with javascript, to make this work?

KenJackson
11-28-2009, 06:52 PM
Since I'm asking for a solution to an html anchor problem on my BH-hosted site, and am suggesting a javascript solution, I posted this in the Advanced Scripting, and Coding help! forum, which is certainly the most appropriate place.

But I see it's been rudely dumped in the Off Topic forum without so much as an explanation.

I guess the dumper either didn't read it or reacted by knee-jerk.