Gregg Posted September 11, 2006 Share Posted September 11, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/20441-disable-save-function/ Share on other sites More sharing options...
HuggieBear Posted September 11, 2006 Share Posted September 11, 2006 Probably JavaScript, not PHP.Search Google, there must be hundreds of results.RegardsRich Quote Link to comment https://forums.phpfreaks.com/topic/20441-disable-save-function/#findComment-90105 Share on other sites More sharing options...
Gregg Posted September 11, 2006 Author Share Posted September 11, 2006 Haha,i thought the same thing but came up empty handed.I searched javascript todeath, i'll try a diffrent search EN Quote Link to comment https://forums.phpfreaks.com/topic/20441-disable-save-function/#findComment-90107 Share on other sites More sharing options...
gijew Posted September 11, 2006 Share Posted September 11, 2006 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 = ) Quote Link to comment https://forums.phpfreaks.com/topic/20441-disable-save-function/#findComment-90109 Share on other sites More sharing options...
kenrbnsn Posted September 11, 2006 Share Posted September 11, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/20441-disable-save-function/#findComment-90119 Share on other sites More sharing options...
Gregg Posted September 12, 2006 Author Share Posted September 12, 2006 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! Quote Link to comment https://forums.phpfreaks.com/topic/20441-disable-save-function/#findComment-90121 Share on other sites More sharing options...
AndyB Posted September 12, 2006 Share Posted September 12, 2006 [quote author=Gregg link=topic=107702.msg432400#msg432400 date=1158017727]I have seen this done of at least 4 diffrent sites but am stumped on how they did it.[/quote]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. Quote Link to comment https://forums.phpfreaks.com/topic/20441-disable-save-function/#findComment-90122 Share on other sites More sharing options...
AndyB Posted September 12, 2006 Share Posted September 12, 2006 http://continue.to/hope Quote Link to comment https://forums.phpfreaks.com/topic/20441-disable-save-function/#findComment-90123 Share on other sites More sharing options...
Gregg Posted September 12, 2006 Author Share Posted September 12, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/20441-disable-save-function/#findComment-90124 Share on other sites More sharing options...
Gregg Posted September 12, 2006 Author Share Posted September 12, 2006 Hahah, your right it dident work still loaded the code just not the images...Do you know how to make [b]PHP[/b] load a cam? Quote Link to comment https://forums.phpfreaks.com/topic/20441-disable-save-function/#findComment-90125 Share on other sites More sharing options...
gijew Posted September 12, 2006 Share Posted September 12, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/20441-disable-save-function/#findComment-90129 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.