# Tar2RubyScript: Path to original executable & browser issues

**URL:** <https://www.ruby-forum.com/t/tar2rubyscript-path-to-original-executable-browser-issues/90290>\
**Category:** Ruby\
**Created:** [March 27, 2007, 12:20pm UTC](https://www.ruby-forum.com/t/tar2rubyscript-path-to-original-executable-browser-issues/90290 "2007-03-27T12:20:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![masschel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/aca169/32.png) [@masschel](https://www.ruby-forum.com/u/masschel)\
**Post date:** [March 27, 2007, 12:20pm UTC](https://www.ruby-forum.com/t/tar2rubyscript-path-to-original-executable-browser-issues/90290/1 "2007-03-27T12:20:24Z")

</div>

Getting the path to the original executable is possible with the script  
described here:  
[http://www.erikveen.dds.nl/tar2rubyscript/index.html#3.2.0](http://www.erikveen.dds.nl/tar2rubyscript/index.html#3.2.0)

I work with a rails application that consist of a executable and some  
loose files (images, movies) on a dvd. With the above-mentioned script I  
can reach the absolute path (ie a path to the dvd) to these files by  
using “oldlocation”. Great!

However, my application runs through localhost and most browsers treat  
this address like any other internet address, with all security options  
on. This means, among other things, that the browser will not  
execute/render/show files whos path is an _absolute_ path to a file on  
my system. Otherwise, any internet site could execute any file on my  
system.  
In many browsers, we can just add local host to a list of safe sites,  
but I don’t want every user of my application to have to change their  
browser’s settings.

So, is there any way to solve this problem? Maybe the path can be made  
“relative”, if it can have the prefix “[http://localhost:3000/](http://localhost:3000/)”, so the  
browser thinks this is just another path “to a file on that particular  
server”?

Any ideas on this browser problem?

Bart
