Click here to Skip to main content
13,042,329 members (111,857 online)
Rate this:
Please Sign up or sign in to vote.
See more:

in my website i want to display a SWF format file. the below code i have used to display it. while i check the page source in the web browser it shows the filename and the path. but i want to hide it or have encrypt it.

<object align= "middle" 
        style="width: 574px; height: 358px" 
        visible =false>
        <embed  src="<%=swfFileName%>"   

i want to hide "filepath/swffile.swf" name.
is it possible to do that. please tell me your valuable suggestions...!
Posted 8-Feb-13 1:41am
ryanb31 8-Feb-13 7:52am
I doubt it. It is executed client side so somehow it needs to be there. What are your reasons for wanting to hide it?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Not going to happen. In order for the html to work on the client side it needs to have that value there in a readable format.
In order for this to be possible all the browsers would have to have code built into their rendering engines that would know how to translate this value, which in turn means that it would take virtually no effort at all for someone to sniff the real file location anyway with a tool like Fiddler.
The point is, there is not point trying to do this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 8 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100