Jump to content


Photo

Disable save function?


  • Please log in to reply
10 replies to this topic

#1 Gregg

Gregg
  • Members
  • PipPipPip
  • Advanced Member
  • 61 posts
  • LocationUSA

Posted 11 September 2006 - 11:35 PM

Ok, i want to know how i would go about making it sowhen a user trys to,
"Save Page As" it will block it?
I have seen this done of at least 4 diffrent sites but am stumped on how they did it.

I was thinking they did it with php cause it dont show in the source...
Or at least make an alternate "Page" for saving.

#2 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 11 September 2006 - 11:37 PM

Probably JavaScript, not PHP.

Search Google, there must be hundreds of results.

Regards
Rich
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

#3 Gregg

Gregg
  • Members
  • PipPipPip
  • Advanced Member
  • 61 posts
  • LocationUSA

Posted 11 September 2006 - 11:39 PM

Haha,i thought the same thing but came up empty handed.
I searched javascript todeath, i'll try a diffrent search EN

#4 gijew

gijew
  • Members
  • PipPipPip
  • Advanced Member
  • 240 posts
  • LocationCalifornia

Posted 11 September 2006 - 11:43 PM

I would imagine that this cannot be done.  The only reason why I think that is whether it be Javascript or any other client language the code wouldn't be able to turn off core functions of the browser.  I've never personally seen this done.

On that note, I am sure that there is a way to hide your code using php/javascript so if someone DOES download your site, you can at least hide the code from them.  Google that to see if that works for ya = )
I'm considered good looking in some countries

#5 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 11 September 2006 - 11:57 PM

If you are worried that a person is going to steal (borrow) your PHP code, you shouldn't have to worry. The user can only see the generated HTML code, not your PHP. If you want to stop a user from getting the generated HTML, good luck. It might look like it can be done, but where there's a will there's a way. Since the browser needs to see the code to put it on the screen, that code needs to come on to the user's computer. If it is coming over the wire, and someone really wants to get it, they can.

The only way you can keep your code perfectly safe is never to put it on the Internet or an accessible computer in the first place.

Ken

#6 Gregg

Gregg
  • Members
  • PipPipPip
  • Advanced Member
  • 61 posts
  • LocationUSA

Posted 12 September 2006 - 12:00 AM

I found it, and i am not worried about my php but other sensitive info.
I just dont want my streaming info loaded on there home pc...
The code i found uses a hidden page as the "save as" page lol. So when they save any of my pages it will download a BLANK page saying NO HACKERS ALLOWED!

#7 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 12 September 2006 - 12:01 AM

I have seen this done of at least 4 diffrent sites but am stumped on how they did it.


OK, post the url of any of them. I doubt it's "save-proof" for anyone who wants it.

As Ken noted, it's in YOUR temporary internet files so YOUR browser can display it. Help yourself to what's in your temp files.
Legend has it that reading the manual never killed anyone.
My site

#8 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 12 September 2006 - 12:03 AM

http://continue.to/hope
Legend has it that reading the manual never killed anyone.
My site

#9 Gregg

Gregg
  • Members
  • PipPipPip
  • Advanced Member
  • 61 posts
  • LocationUSA

Posted 12 September 2006 - 12:04 AM

I will try it as soon as i get it on the page,only one needed for me.
Or i need to find away to post the web cam in a safer way.
I used html as a loader cause i never did it befor and its a pain to find a load cam script for free lol.

#10 Gregg

Gregg
  • Members
  • PipPipPip
  • Advanced Member
  • 61 posts
  • LocationUSA

Posted 12 September 2006 - 12:06 AM

Hahah, your right it dident work still loaded the code just not the images...
Do you know how to make PHP load a cam?


#11 gijew

gijew
  • Members
  • PipPipPip
  • Advanced Member
  • 240 posts
  • LocationCalifornia

Posted 12 September 2006 - 12:16 AM

Never loaded a cam but I assume you would do it the same way you would load a mpeg or anything which is done with HTML.  Just look up the <embed> tag and I'm sure you'll find something.
I'm considered good looking in some countries




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users