«Home

How Can You Prevent A Webpage From Being Saved?

i think knowing how to make a web page unsaveable could be useful. how can i do that. thanks?

Avatar
Newbie
26 answers

Well I don't realy know if you can prevent a page from being downloaded altogether but for years now I've been using some free-ware HTML encrypting applications that can encrypt the page contents and the scripts in the pages so that the become realy really reallly realllly difficult to decipher and even if you download the pages, they are not viewable in the editor window of any Web Editor. If you view the codes, you might as well be looking at the codes of "The Matrix".

0
Avatar
Newbie

@RuuDie

Online payment is a solution closely oriented by your bank. If you have a business account, meet your bank manager to arrange online and credit card payment options for you.

He would give you some important information like, their ATM gateway, authorization branch code, access to their API and the language they use i.e ASP,JSP or PHP.

With these information we can develop online payment solution for you. Another solution is to use a third-party company. There are many of them, do google search for online payment solution. Even you can use ebay. But they would charge you some commisson per transaction usually in pence, so it is cheap.

Chat room software are freely available online. I can design one for you using java it is dead easy. I will only give you the algorithm for connection and exchanging chat but you would have to build your interface either with HTML or GUI.

The problem with this is that it will cost you money to host it as it is bandwith intensive as users login to chat. But if you'd prefer a third-party software, which is not only cheap but you would have peace of mind.

Imagine designing nairaland from scratch, tedious. But you can download free BB and modify it and host it on a public domain and that it is to it.

The same applies to chat room, do google search and download free chat software modify it and put it on a public domain or put a link on your website to point to it.

0
Avatar
Newbie

those who developed the web had something called open source in mind. the only thing that the source can't be viewed is server side code

0
Avatar
Newbie

@ My2cent

Its nice to read from you again,Compliment of the season.

Actually what i'm trying to say about javascript is this,

When i want to protect my webpage Source from the Visitor

i use JAVASCRIPT,this how is work i Copy the Html Source to my file manager i.e the page i want to protect.

Then its tend to disable right click,so u can't right click and View the Webpage Source.

i guess u understand what am trying to say.

Cheers man.

0
Avatar
Newbie

nice,

the javascript solution can be "danced" around in one of 2 ways:

1) disabling javascript in your browser, or

2) using your browser menus (view - source, then copy the source, paste, then save off all the images by referencing their respective paths).

0
Avatar
Newbie

@SBU

i've been lurking around the forum & it seems to me like u got a vast knowledge i web design , pls man i'd need some info 4rm u.

got dis site thingy dat i'm working on but havin sm stress , my major stress is coordinating online payment on d site into an account locally & how to create a sorta chat-room stage , pls man any help u can offer!

0
Avatar
Newbie

@rock2

  Guy the only way i know that u can prevent a webpage from being Saved is to

use Javascipt,but don't u think that The great Obantalatarapipipi Of Nairaland is

in a better position to help u, Abeg ask ham First,

   Cheers man.

0
Avatar
Newbie

@ sbucarrer

tis funny u started with u can't do it and ended with tis possible.

Anyway just an abservation: one time i tried to save some tutorial pages off the sun website but it didn't work; just crashed (at least with explorer). Got around it eventually (opera/firefox) but t got me thinking.

I just tried it again

Use this link with Internet Explorer: http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/helloweb.html

If u get a different experience please share

When you "Save As" it counts to 97% or so and then returns a "Page Could Not Be Saved Error" make sure u're using the "Web Page, complete" option.

Curious, don't u think?

0
Avatar
Newbie

This was so funny an episode or it an entire sup?

0
Avatar
Newbie

hm this seem like a big fight, but i don't think js and css should be hidden but if there is the need to then why don't you. i learnt css by looking at code from people over the web experimenting with themand that greatly improved my knowledge. so far you created it yourself and feel there's an need to protect it then go ahead. lets put our egoes under check.

0
Avatar
Newbie

Cactus, can I join the project? Also, can you send me the proposal. I already know the motivation. I would like to contribute to this project.

0
Avatar
Newbie

for all you non-believers of the likelihood on the possibility of implementing something to prevent people from saving/copying webpage/site info, well my proposal was approved at least that is a step forward

Subject: SourceForge.net Project Approved

Your project registration for SourceForge.net has been approved.

Project Information:

Project Descriptive Name: STERILE

Project Unix Name: sterile

CVS Server: cvs.sourceforge.net

Shell Server: shell.sourceforge.net

Web Server: sterile.sourceforge.net

http://sourceforge.net/projects/sterile/

the web server should be up in about 24hrs or less for dns resolution.

next step is now to get as many current sourceforge contributors as i can to brainstorm ideas and how best to implement

0
Avatar
Newbie

opening directory part for a folder etc are event driven procedures, so what is stopping an application or something from tracking the events.

that is even a more complex scenario

if you disabled all menu options relating to saving/copying, shortcuts, right/left clicking save/view/copy menu options that is absolutely possible.

the main difficulty will be for those using website extractors, importing into FP/dreamweaver etc or some external app to read.

if sourceforge approvals my proposal which i am hoping to find out tomorrow, that means they also do believe it is doable LOL. else they will consider it crap instead of arguing about this we can do something practical, if we get stuck somewhere then we can give up and say well we tried but unsuccessful.

0
Avatar
Newbie

Please stop fighting guys. Your egos are unbelievable!!

0
Avatar
Newbie

You are a joker!!! HTML, what runs the parser? SQL what runs the parser? Javascript what runs the parser? Don't be difficult on yourself, I said they are software components, ok.

0
Avatar
Newbie

logically, i think it is possible to prevent people from saving a webpage, website, content, script etc. this is how it would work

This is what he siad and I responded to it, ok.

0
Avatar
Newbie

Reference

MVC is separation of concern

Well I am proud because I wrote the code myself. You would NEVER find this type of MVC solution anywhere on earth. If you do they probably copied it from my project, ok.

0
Avatar
Newbie

I said I will not write or contribute to this thread again, but I just want to make a comment, CSS, JavaScript, HTML, DHTML, XML, SQL etc. are all components of software. Software development need these components to function effectively.

Let me make note of this in the forum Yexon.co.uk and digitemsystems are my companies registered in the UK. You can search the whois database to find the owner. I guess you all know my name, Valentine Obih. Please understand things before you make unelaborated clams!

0
Avatar
Newbie

I keep saying this, ignorance is a bliss. I will not futher contribute to this thread. I did not know that exchanging information was pulling effects!

I can see that you people are intemidated by my knowledge I will leave you people in peace. Please know what is package directories and UNC (Universal Naming Convention) before trying to pull another blind argument.

If my code is urgly and poorly written, I suggest you supply your cleverly written MVC to use as a comdenation of mine?

I will repeat it again in case you do not know, the purpose of MVC is to separate software concern. We have a concern now, which is people copying or downloading .CSS and Javascript.

My proposal, which did not include MVC elegance was to wrap Javascript and CSS into an object and put it at the back end and simply call it using one of many methods, hence MVC and I showed you how it worked by the using a simple HTML and JSP from a class Object.

Let me give the the poor code of the class object, incase when you are nake bathing, you can read it while at it.

package com.org.yexon.event;

import javax.servlet.RequestDispatcher;

import javax.servlet.ServletContext;

import javax.servlet.ServletException;

import java.io.IOException;

import java.util.ResourceBundle;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

public class UnknownEventHandler extends EventBaseHandler{

    private ResourceBundle bundle = ResourceBundle.getBundle( "URL" );

    protected String getURL(){

return bundle.getString( "UNKNOWNEVENT" );

    }//End getURL

}//End EventBaseHandler class

0
Avatar
Newbie

I did not finished your post but got general idea of what you are trying to do. I have done something like that in my web application development. i.e.

In the line like <link rel="stylesheet" href="/erclib/css/styleLSBU_css.css" media="screen" type="text/css" />

I will do this instead <link rel="stylesheet" href="controller?event=CSS" media="screen" type="text/css" />

I have used it on my website here. But I did not try it with the CSS, I used it to track all the files and pages I want to serve people.

What I did was to create two properties file called:

1. Url.properties

2. Events.properties

These are there contents.

Url.properties

ADMINISTRATION=

ADVERT=/jsp/advertisewithus.jsp

ASSIGNMENT=/jsp/assignment.jsp

ABOUT=/html/about.htm

BUGDATABASE=

CONTACT=/html/contact.htm

CC=

COPYRIGHT=/jsp/copyright.jsp

COMPANYINFO=/jsp/companyInfo.jsp

DATABASE=

DEVELOPERMAILING=

DOCUMENTATION=

FOOTER=/jsp/footer.jsp

FAQS=/html/faqs.htm

HOME=/jsp/index.jsp

HOMEPAGE=

HOMENETWORKING=/jsp/homeNetwork.jsp

IRC=

J2EE=

JAVA_BUG=

JOBS=/jsp/jobs.jsp

LOGIN=/jsp/login.jsp

MANAGER=

MCSE1=

OFFICENETWORKING=/jsp/officeNetwork.jsp

PROGRAMMING=<a href="Event.properties">Event.properties</a>

PROJECT=<a href="Event.properties">Event.properties</a>

POLICY=/jsp/policy.jsp

PHP=

PRODUCTS=/html/products.htm

PRESS=/html/press.htm

PARTNERS=/html/partners.htm

REGISTER=/jsp/register.jsp

SERVICES=/html/services.htm

STRUT=strut

SERVLET=

SOFTWARE=

SUGGESTION=/jsp/suggest.jsp

STORE=/html/store.htm

TERMS=/jsp/termsandcondition.jsp

TOMCAT=

USERMAILING=

UNKNOWNEVENT=/jsp/unknownEvent.jsp

UNKNOWNERROR=/jsp/unknownError.jsp

WEBCOMPONENTS=

MENU=/html/index.htm

Event.properties

ASSIGNMENT=com.org.yexon.event.AssignmentEventHandler

HOME=com.org.yexon.event.HomeEventHandler

BUGDATABASE=com.org.yexon.event.BugDataBaseEventHandler

USERMAILING=com.org.yexon.event.UserMailingEventHandler

DEVELOPERMAILING=com.org.yexon.event.DeveloperMailingEventHandler

IRC=com.org.yexon.event.IRCEventHandler

STRUT=com.org.yexon.event.StrutEventHandler

SERVLET=com.org.yexon.event.ServletEventHandler

PROJECT=com.org.yexon.event.ProjectEventHandler

DATABASE=com.org.yexon.event.DataBaseEventHandler

SOFTWARE=com.org.yexon.event.SoftwareEventHandler

PROGRAMMING=com.org.yexon.event.ProgrammingEventHandler

TOMCAT=com.org.yexon.event.TomcatEventHandler

PHP=com.org.yexon.event.PHPEventHandler

CC=com.org.yexon.event.CCEventHandler

UNKNOWN_EVENT=com.org.yexon.event.UnknownEventHandler

UNKNOWN_ERROR=com.org.yexon.event.UnknownErrorEventHandler

JAVA_BUG=com.org.yexon.event.JavaEventHandler

WEBCOMPONENTS=com.org.yexon.event.FWebComponentsEventHandler

J2EE=com.org.yexon.event.J2eeEventHandler

ADMINISTRATION=com.org.yexon.event.AdministrationEventHandler

MANAGER=com.org.yexon.event.ManagerEventHandler

DOCUMENTATION=com.org.yexon.event.DocumentationEventHandler

HOMEPAGE=com.org.yexon.event.HomePageEventHandler

MCSE1=com.org.yexon.event.MsceOneEventHandler

SUGGESTION=com.org.yexon.event.SuggestionEventHandler

COMPANYINFO=com.org.yexon.event.CompanyInfoEventHandler

COPYRIGHT=com.org.yexon.event.CopyRightEventHandler

TERMS=com.org.yexon.event.TermsEventHandler

JOBS=com.org.yexon.event.JobsEventHandler

ADVERT=com.org.yexon.event.AdvertEventHandler

POLICY=com.org.yexon.event.PolicyEventHandler

LOGIN=com.org.yexon.event.LoginEventHandler

REGISTER=com.org.yexon.event.RegisterEventHandler

FOOTER=com.org.yexon.event.FooterEventHandler

HOMENETWORKING=com.org.yexon.event.HomeNetworkingEventHandler

OFFICENETWORKING=com.org.yexon.event.OfficeNetworkingEventHandler

MENU=com.org.yexon.event.MenuEventHandler

ABOUT=com.org.yexon.event.AboutEventHandler

CONTACT=com.org.yexon.event.ContactEventHandler

SERVICES=com.org.yexon.event.ServicesEventHandler

PRODUCTS=com.org.yexon.event.ProductsEventHandler

FAQS=com.org.yexon.event.FaqsEventHandler

PRESS=com.org.yexon.event.PressEventHandler

STORE=com.org.yexon.event.StoreEventHandler

PARTNERS=com.org.yexon.event.PartnersEventHandler

The actuall server scripts that is behind this MVC is using servlets, actually two servlets namely:

1. Controller.java

2. EventBaseHandler.java

here are the files

package com.org.yexon.event;

import javax.servlet.RequestDispatcher;

import javax.servlet.ServletContext;

import javax.servlet.ServletException;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

public abstract class EventBaseHandler{

/*

    Declare abstract method.  Any class that

    extends this abstract class will define how

    this method will get information regarding URL

*/

    protected abstract String getURL();

/*

    This method could be overwritten but must not

    be implemented like getURL method above.  If this

    method is overwritten in any class that use it the

    functionality will be adopted from the new implementation

*/

    public void process( HttpServletRequest request,

HttpServletResponse response )

throws IOException, ServletException {

    }//End process

/*

    This method could be overwritten but must not

    be implemented like getURL method above.  If this

    method is overwritten in any class that use it the

    functionality will be adopted from the new implementation

*/

    public void forward( HttpServletRequest request,

HttpServletResponse response )

throws IOException, ServletException {

dispatch( request, response );

    }//End forward

/*

    This method could be overwritten but must not

    be implemented like getURL method above.  If this

    method is overwritten in any class that use it the

    functionality will be adopted from the new implementation

*/

    public void dispatch( HttpServletRequest request,

HttpServletResponse response )

throws IOException, ServletException {

      RequestDispatcher rd = request.getRequestDispatcher( getURL( ) );

      if ( rd != null )

      rd.forward( request, response );

    }//End forward

}//End EventBaseHandler class

For the Controller class

package com.org.yexon.servlets;

import com.org.yexon.event.EventBaseHandler;

import java.util.HashMap;

import java.io.IOException;

import java.util.Enumeration;

import java.util.ResourceBundle;

import javax.servlet.ServletContext;

import javax.servlet.ServletException;

import javax.servlet.http.HttpServlet;

import javax.servlet.http.HttpSession;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

public class Controller extends HttpServlet{

    protected static HashMap events = new HashMap( );

    public void init (  ) throws ServletException{

ResourceBundle bundle = ResourceBundle.getBundle( "Event" );

Enumeration e = bundle.getKeys( );

while( e.hasMoreElements( ) ){

    String key   = ( String ) e.nextElement( );

    String value = bundle.getString( key );

    try{

EventBaseHandler event = (  EventBaseHandler )

Class.forName( value ).newInstance( );

events.put( key, event );

    }catch ( Exception exception ){

     //We wiil try and do something here in the future

    }//End exception

}//End while

       }//End init method

    public void doGet ( HttpServletRequest request,

HttpServletResponse response )

throws IOException, ServletException{

doPost( request, response );

    }//End doGet Method

    public void doPost ( HttpServletRequest request,

HttpServletResponse response )

throws IOException, ServletException{

String event = ( String ) this.validateEvent( request );

EventBaseHandler handler = getEventHandler ( event );

try{

    handler.process ( request, response );

}catch ( Exception exception ){

    request.setAttribute ( "error", exception );

    handler = this.getEventHandler( "UNKNOWN_ERROR" );

}//End exception

       handler.forward ( request, response );

    }//End doPot Method

    protected String validateEvent( HttpServletRequest req ){

String event = req.getParameter( "event" );

if( event == null || !events.containsKey( event ) ){

    event = "UNKNOWN_EVENT";

}

return event;

    }//End validate method

    protected EventBaseHandler getEventHandler( String theHandler ){

EventBaseHandler handler;

try{

    handler = ( EventBaseHandler ) events.get( theHandler );

}catch( Exception exception ){

    handler = ( EventBaseHandler ) events.get( "UNKNOWN_EVENT" );

}//End exception

return handler;

    }//End getEventHandler

}//End Controller class

These approache could be used for the CSS and Javascript to adopt the middleware deployment which will undoubtedly prevent people from downloading your business logic.

Try my url to see how my pages are been called from the middleware. Sorry if this did not help with your argument

0
Avatar
Newbie

logically, i think it is possible to prevent people from saving a webpage, website, content, script etc. this is how it would work

On my server, i would have mini applications/scripts/programs or whatever u want to call it. these applications would track browser menu selections, on clicking the menu event, SAVE PAGE AS/SAVE ALL/SAVE or using shortcuts ctrl A, ctrl S, printscreen

I would have a script that runs on my server to track the location and which specific files are saved where my webpage, website, images, videos, sounds, scripts, code etc. on my visitors' computer, then the script will transfer the path to a different application that will automatically be download onto the visitors' machine, i will look for the path, possibly search for keywords in the folder, or images that appear on my website and then wipe the content downloaded. this is going to involve quite some intelligent algorithm so as not to remove unrelated information from my visitors' computer

and i could also program the application to delete itself once the job is done as the application will be downloaded automatically each and everytime someone tries to save a page or a content from my site.

if anyone is interested, we can work on a small application, it is not a matter of is it possible? I know it is possible, and then i would definitely try to come up with something if i can get people to join in and help out with programming.

hm lets see before there were light bulbs, or cars, everyone wonder what could be until it came to life and proved them wrong.

i have submitted the project for approval on sourceforge.net which should take two days hopefully, if it is approved, will give y'all the link to join in and contribute. i am lookin in the lines of disabling menu options in different web browsers, website extractors etc on different operating platforms

wish me luck>

if no one understands how this would work, i can still clarify the process and maybe describe or illustrate better with a more decent example

0
Avatar
Newbie

Now that we have cleared the air, do you now believe that .js and .css and other server side scripts can be downloaded when you simply save a url? This is the reason we have enterprise application today (Separation of concern).

You inject objects from middleware to front-end and deject them when necessary. This way people can not still you code, the middleware, because all it does is render object or reference to the class.

0
Avatar
Newbie

my2cents, sorry if you think I offended you or directed my response to you. You should really try and find out the meaning of Ignorance can be a bliss and your knowledge reprehensible  you would see that I did not direct any insult or take anyones knowledge in this forum minuscule.

One does not know all including me and you. The phrases I choose for any public outlook is always irreprehensible. Sorry if you thought I directed the words to you. Bliss is happiness. So, in other words what I am saying is ignorance can be joyful.

You see I did not make anyone look less. Sorry if I offended you, accept my sincere apology.

0
Avatar
Newbie

Ignorance can be a bliss, sometime it is worth trying out stuff first to know for yourself that the argument you are about to make will hold.

When you visit a site and hit the file save-as in your browser tool bar, it would save the .css and .js files even if their links where relatives.

Try it and come back here to argue with me further. Visit this site as a demo http://www.lsbu.ac.uk First go to View-source from your explorer tool bar and see that the .css and and .js are just a reference to another http site i.e

<link rel="stylesheet" href="/erclib/css/styleLSBU_css.css" media="screen" type="text/css" />

<link rel="stylesheet" href="/clearingGuide/css/clearingChanges_css.css" media="screen" type="text/css" />

<link rel="stylesheet" href="/erclib/css/v2_printstyles.css" media="print" type="text/css" />

Now, just navigate to http://www.lsbu.ac.uk and hit save-as from the file menu on your explorer and go to the directories where you saved it and see if the .css and .js files are not downloaded.

If they were, just don't argue blindly it makes your knowledge reprehensible .

0
Avatar
Newbie

Internet is a free environment. Internet is open source. You can NEVER prevent people from copying you documents on the web. Remember the good old PrtScn (Print Screen).

Just design what ever you want and hope that people can find it very hard to redesign

0
Avatar
Newbie

U can't prevent people from saving a web page. You can mess around in js, you can prevent right click, but everything you try will be useless because we can still get your images and your source code. You cannot disable stuff like that on all browsers, infact its hard to stop someone from getting that data in even ie because of the fact that the user has to download your web page for his browser to read the code,  all of your code ends up in his cache which he can just go into and look at. Quit trying to protect your client side source code and images,  its impossible.

The only solution that stops people from being able to save what you have placed into a web page is to put the page into a password protected directory on your site and don't give them the password so that they can't access the page. Only pages that can't be accessed by someone cannot be downloaded by that person.

Once someone views a web page they already have a copy of the page on their computer that the browser made in order to display the page.

U could also protect ur source code. This should help http://www.aerotags.com/products/tlp.php

0
Avatar
Newbie
Your answer
Add image

By posting your answer, you agree to the privacy policy and terms of service.