Welcome Guest, Not a member yet? Register   Sign In
hide external url in view
#1

[eluser]coldfire82[/eluser]
Hi,

I want to load content from external url. Like http://somesite.com/file/my.swf in my view.

I am using

Code:
<div>
    &lt;object type="text/html" data="&lt;?php echo $file-&gt;url; ?&gt;"&gt;&lt;/object>
</div>

It loads the content in the view when i use,

Code:
$this->data['file_content'] = $this->load->view('file', $this->data, true);

in my file_content variable. But, I want to hide the $file->url which is loaded in the view (its an swf file). How to encrypt the html or hide the code etc. so that viewers wont be able to view source and see the below in view,

Code:
<div>
    &lt;object type="text/html" data="http://somesite.com/file/my.swf"&gt;&lt;/object>
</div>

Any smart solution ??




Theme © iAndrew 2016 - Forum software by © MyBB