954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Hide right click option usnig php

Hai fiends

I want to disable the righ click option in my web application.
How to hide the right click option usong php?

Please send me any idea.

Thanks
Prabu
__________________
Thanks
Vssp

vssp
Junior Poster
199 posts since Jul 2006
Reputation Points: 5
Solved Threads: 5
 

Hi I got the solution

I am using javascript to solve my issiue

Use this link

http://www.google.com/search?q=Disable+Right+Click+with+Javascript
Thanks
magi

vssp
Junior Poster
199 posts since Jul 2006
Reputation Points: 5
Solved Threads: 5
 

1) Glad you realized you can't do that with PHP as it is only a server side language

2) You do realize that blocking right click can be easily defeated, makes people more likely to do whatever it is you don't want them to do, and makes your site look crappy and unprofessional?

stymiee
He's No Good To Me Dead
Moderator
3,360 posts since May 2006
Reputation Points: 161
Solved Threads: 38
 
You do realize that blocking right click can be easily defeated

...and often only works with Internet Explorer?

Puckdropper
Posting Pro
500 posts since Jul 2004
Reputation Points: 23
Solved Threads: 23
 

Yes i its working IE only

vssp
Junior Poster
199 posts since Jul 2006
Reputation Points: 5
Solved Threads: 5
 

The JavaScript technique only stops amatuers. A user can either disable JavaScript or just look at the HTML code to copy your content or get a path to your images.

TopDogger
Junior Poster in Training
87 posts since Aug 2005
Reputation Points: 15
Solved Threads: 5
 

There is only one true way to protect whatever it is you are trying to protect and even then someone always thinks of a way around it ..

Basically encrypt your html/php with a proper encrypt program like ioncube or zend, then get yourself a php programmer to build you a script that will encrypt and decrypt the page(s) as an admin function, this script should also allow the ability for the encryption to change each time the page is loaded or in this case each time it is viewed.. this is possible but I wont say its 100% foolproof..

James

turnkeysetup
Newbie Poster
8 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 
There is only one true way to protect whatever it is you are trying to protect...


Yeah, it's called not putting it on the Internet. If you put it online, someone can take it from you for free. The level of difficulty in doing so will vary, but you can't stop it. If you don't want other people to have it, don't put it online.

stymiee
He's No Good To Me Dead
Moderator
3,360 posts since May 2006
Reputation Points: 161
Solved Threads: 38
 

Well again there are things you can do and yes you can make it hard as heck for some people but yeah nothing is 100% foolproof.

Having the attitude "well if you dont want someone to have it then dont put it online" dont help anyone, the original poster asked a question so instead of shooting down any hope why not offer suggestions ...

Here I will expand on my post and again I am not saying this is perfect or this is the solution to everybody's problem about protection.. This does not use ioncube nor zend and I am sure some programmers could hack away at it .. but some protection is better than none..

See:
http://www.turnkeysetup.com/demos/encrypt_changing/code/x.php

This is a simple little script that changes the encryption each time the page is loaded..

James

turnkeysetup
Newbie Poster
8 posts since Sep 2006
Reputation Points: 10
Solved Threads: 0
 

Then there's the Tom Carlson of Obsolete Computer Museum method. He has a rather simple security system in place, with the idea that if someone breaks it it's not a big accomplishment.

Of course, he's not protecting any sensitive data (that we know of.)

Puckdropper
Posting Pro
500 posts since Jul 2004
Reputation Points: 23
Solved Threads: 23
 

How to customize the right click menus using PHP?

Note : The menu items are getting from the database...

Rajivgandhi
Newbie Poster
6 posts since Nov 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You