Jump to content
xisto Community
Sign in to follow this  
veerumits

Javascript Keyevents ? keystroke in javascript by which we can restrict the user.

Recommended Posts

javascript keyevents ??????????? friends i have used a good technique on my webpage to restrict user that they can not right-clik on my webpage.but now i want to restrict the user that they also can not use ctrl+a , ctrl+c ,is there any simple way which can solve my problem , because i think this type of techinque are very popular now a days on every website if u have any solution then plz send me respone . but the code should be simple to understatn.

Share this post


Link to post
Share on other sites

If you want a good suggestion: please avoid doing this kind of things, why wouldn't you let people to right click with mouse and wouldn't allow them to copy the whole content? I know that you don't want to show them your html source, don't want your content to be stolen and used elsewhere, but if you don't want that, when keep it for yourself I guess, why would you want to publish it then?I know that when the first websites appeared, they were quite simple, just simple html tags, people wouldn't even care about somebody looking at the source, maybe they should have done something in the beginning by thinking that the future of html will be much more complicated and people will have their own design, but as I said, stay with my suggestion about not worrying about this kind of things, if the browser can show the source, that means that the guy who is using the browser also can see the source one or another way!Be happy, that noone can take your server side scripting/programming code like asp, php.. :rolleyes:

Share this post


Link to post
Share on other sites

There is no perfect security against people copying stuff from your site, so i suggest not to even bother. The best and most professional flash game sites have their contests stolen by simply entering media in tools of firefox and downloading the flash game.In other words, make it too easy they won't bother. Make it hard some might take it as a challange :rolleyes:

Edited by khalilov (see edit history)

Share this post


Link to post
Share on other sites

This is another one of those questions that gets asked a lot. The answer is always the same that there really isn;t a way to completely prevent some one from right clicking or the like. Frankly I use Firefox with a script blocker and if a page can not work with out scripts than I do not bother with it normally. So if you wish to drive visitors AWAY from your site then go right ahead.Secondly I always have to ask myself why?Ask yourself: Is your site really so unique that everyone who visits is going to want to copy it, Really? Is your code that amazing? Consider that you can freely look at the code for Linus or the Kernel of Mac OS X. Is yours really that far above theirs? If it is images you are trying to protect don't bother. I know artist that work for Marvel, ILM, Blizzard, and numerous other places. They freely post images they have created (http://forums.xisto.com/no_longer_exists/) with this kind of silliness. Really, there is no reason.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.