Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 2.00 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-18-2002, 04:31 PM   PM User | #1
JoeP
Regular Coder

 
Join Date: Jun 2002
Location: Plano, Texas
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
JoeP is an unknown quantity at this point
Protect That Image!

I know the questions regarding Protecting Code / Images / Right Click causes teeth to grind here, but a little different request.

I have a simple One.htm page linked below. Please visit and press the Open Button for a pop-up One_a.htm. (The Start/Stop/Reset Buttons Have nothing to do with this exercise).

Please hack the page to get my Valued Image / Valued Code / Valued Text.

THEN, please explain to me how you did it and if there are additional ways to prevent what you did.

I just want see if indeed I have the best techniques Javascript wize to prevent as much as possible.

TIA For your insights!


http://www.houseofproctor.com/lessons/one.htm
JoeP is offline   Reply With Quote
Old 06-18-2002, 04:53 PM   PM User | #2
ACJavascript
Regular Coder

 
Join Date: Jun 2002
Location: FL, USA
Posts: 734
Thanks: 0
Thanked 0 Times in 0 Posts
ACJavascript is on a distinguished road
Well the only way i got in

----------

I went to the page, I saved it to my computer, then I opend it into notepad removed what i didn't like and then uploaded it to my server and took whatever i wanted.



The only way i have found to prevent this -- and it probably doesn't hehehe -- is to have all your javascript pertections in a .js file. .js files don't get downloaded -- from what i'vr seen - when someone downloads a page.


I hope I've helped in any way
__________________
CYWebmaster.com - See why we dot com!!
ACJavascripts.com - Cut & Paste Javascripts!
SimplyProgram.com - Personal Blog
ACJavascript is offline   Reply With Quote
Old 06-18-2002, 05:03 PM   PM User | #3
JoeP
Regular Coder

 
Join Date: Jun 2002
Location: Plano, Texas
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
JoeP is an unknown quantity at this point
Okay! One hole filled. I am assuming just adding a Default.htm will stop the file download. The JS include is a good idea as well.

Any suggestions are appreciated. Not that I have any great code, just want to find out from the real programmers here just how far protetction like this can go.
JoeP is offline   Reply With Quote
Old 06-18-2002, 05:38 PM   PM User | #4
justame
Regular Coder

 
Join Date: Jun 2002
Posts: 676
Thanks: 1
Thanked 0 Times in 0 Posts
justame is on a distinguished road
joe...
/me just a went® to the page...
just a clicked® on your 'open' button...
n' just a rightclicked® n' saved...smile28.gif
n' just a rightclicked® one more time n' selected...view source... n' :O))) sawww it alll...

n' tooo??? /me just a gets® these javascript errors:


JavaScript Error:
http://www.houseofproctor.com/lessons/one.htm, line 19:

syntax error.

<!C- Start Popup Window
^

JavaScript Error:
http://www.houseofproctor.com/lessons/one.htm, line 40:

syntax error.

<!C- Stop Watch
^

JavaScript Error:
http://www.houseofproctor.com/lessons/one.htm, line 125:

Reset is not defined.


n' thatttts just a viewing® your site in netscrap4.7 ...win98SE
__________________
The New JustaBuster Version 2.0 OR JustaBusta Lite V2.0
...just a special® thanx kinda hugs to jkd n' nex ...:O)))

CommemorateWTC.com --Please lend your support
justame is offline   Reply With Quote
Old 06-18-2002, 05:40 PM   PM User | #5
justame
Regular Coder

 
Join Date: Jun 2002
Posts: 676
Thanks: 1
Thanked 0 Times in 0 Posts
justame is on a distinguished road
Quote:
Originally posted by ACJavascript

The only way i have found to prevent this -- and it probably doesn't hehehe -- is to have all your javascript pertections in a .js file. .js files don't get downloaded -- from what i'vr seen - when someone downloads a page.
acj...
/me seems to just a remember® ifin' you just a save® the page??? in ie??? thennn you get alll the js/images to go with the page...
__________________
The New JustaBuster Version 2.0 OR JustaBusta Lite V2.0
...just a special® thanx kinda hugs to jkd n' nex ...:O)))

CommemorateWTC.com --Please lend your support
justame is offline   Reply With Quote
Old 06-18-2002, 06:56 PM   PM User | #6
ACJavascript
Regular Coder

 
Join Date: Jun 2002
Location: FL, USA
Posts: 734
Thanks: 0
Thanked 0 Times in 0 Posts
ACJavascript is on a distinguished road
Justa, I used IE 5.5 and i never got the .js files, ??? is it my browser or is it just ----- weird things hehehehe
__________________
CYWebmaster.com - See why we dot com!!
ACJavascripts.com - Cut & Paste Javascripts!
SimplyProgram.com - Personal Blog
ACJavascript is offline   Reply With Quote
Old 06-18-2002, 07:08 PM   PM User | #7
JoeP
Regular Coder

 
Join Date: Jun 2002
Location: Plano, Texas
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
JoeP is an unknown quantity at this point
Thx Justame.. Looks like nothing in the page is good for Netscape... Hmmmmmm! Especially, the right clik copy etc.

Thx for your time.
JoeP is offline   Reply With Quote
Old 06-18-2002, 07:56 PM   PM User | #8
redhead
Regular Coder

 
Join Date: Jun 2002
Location: United Kingdom Confused: Often
Posts: 859
Thanks: 0
Thanked 0 Times in 0 Posts
redhead is an unknown quantity at this point
Hmmm......

I cant help noticing that in your HTML you put <header>, me thinks that should just be <head>...
__________________
redhead
redhead is offline   Reply With Quote
Old 06-18-2002, 08:17 PM   PM User | #9
JoeP
Regular Coder

 
Join Date: Jun 2002
Location: Plano, Texas
Posts: 113
Thanks: 0
Thanked 0 Times in 0 Posts
JoeP is an unknown quantity at this point
Yep..Just a typo on that opening page.
JoeP is offline   Reply With Quote
Old 06-18-2002, 08:38 PM   PM User | #10
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
Quote:
The only way i have found to prevent this -- and it probably doesn't hehehe -- is to have all your javascript pertections in a .js file. .js files don't get downloaded -- from what i'vr seen - when someone downloads a page.
Sorry, but when I look at the browser cache in IE, I can see several .js files lying there. Those cached files make hiding content more than a little difficult.
Roy Sinclair is offline   Reply With Quote
Old 06-18-2002, 11:06 PM   PM User | #11
Graeme Hackston
Regular Coder

 
Join Date: Jun 2002
Posts: 624
Thanks: 0
Thanked 0 Times in 0 Posts
Graeme Hackston is an unknown quantity at this point
It's not bad but at what cost? Are you planning on using this on an image site?.

In IE I screen captured with PSP. In NN4 and Opera6, save as.
Graeme Hackston is offline   Reply With Quote
Old 06-18-2002, 11:30 PM   PM User | #12
winlineau
Banned

 
Join Date: Jun 2002
Location: Australia
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
winlineau is an unknown quantity at this point
There is a SIMPLE way that you can download .js files.

1) Veiw the scource
2) Goto a WISIWIG editer
2) get the location of the .js file (you may have to add the website address)
3) get that address in a hyperlink.
4) back click and say download
winlineau is offline   Reply With Quote
Old 06-19-2002, 12:48 AM   PM User | #13
justame
Regular Coder

 
Join Date: Jun 2002
Posts: 676
Thanks: 1
Thanked 0 Times in 0 Posts
justame is on a distinguished road
Quote:
Originally posted by ACJavascript
used IE 5.5
acj...
/me just a uses® ie5...errr just a rephrasing® that...'has' ie5...doesnt just a use® it much...hehehe...
__________________
The New JustaBuster Version 2.0 OR JustaBusta Lite V2.0
...just a special® thanx kinda hugs to jkd n' nex ...:O)))

CommemorateWTC.com --Please lend your support
justame is offline   Reply With Quote
Old 06-19-2002, 01:43 AM   PM User | #14
JohnKrutsch
Regular Coder

 
Join Date: Jun 2002
Location: The Planet Earth Code Poet: True
Posts: 282
Thanks: 0
Thanked 1 Time in 1 Post
JohnKrutsch is an unknown quantity at this point
Just enter this into the address bar:

view-source:http://www.houseofproctor.com/lessons/One_A.htm
JohnKrutsch is offline   Reply With Quote
Old 06-19-2002, 02:47 AM   PM User | #15
whammy
Senior Coder

 
Join Date: Jun 2002
Location: 41° 8' 52" N -95° 53' 31" W
Posts: 3,660
Thanks: 0
Thanked 0 Times in 0 Posts
whammy is an unknown quantity at this point
Simply put:

You can't protect source code. Period.

__________________
Former ASP Forum Moderator - I'm back!

If you can teach yourself how to learn, you can learn anything. ;)
whammy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:02 PM.


Advertisement
Log in to turn off these ads.