Re: Disable Right click w/ php?
| From: | Richard Crawford | Date: | Thu, 14 Feb 2002 21:30:36 +0000 |
| Subject: | Re: Disable Right click w/ php? | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-16970@lists.php.net to get a copy of this message | ||
There is no way to do this in PHP. None. None at all. It simply
cannot be done. Right-clicking is handled by the browser client only,
along with things like the back button, etc. If you could have a
server-side scripting language make changes in how the browser works,
you'd be in some serious trouble. It would be a very serious security
violation (which means MicroSoft will probably allow it at some point --
heh).
Having said that, there are ways to disable the context menu using
JavaScript and DHTML; however, it will only work in certain browsers
(notably IE and higher versions of NS). Check out
http://www.dynamicdrive.com for some ideas.
On Thu, 2002-02-14 at 13:23, William Fong wrote:
> I could wget these files and stick them in MySQL to organize ( had to make
> this a legit post in php/db )... vi them and dd out the javascript lines.
>
> There is no point in protecting html...
>
>
>
>
> --
> William Fong - wfong@mookandblanchard.com
> Phone: 626.968.6424 x210 | Fax: 626.968.6877
> Wireless #: 805.490.7732 | Wireless E-mail: 8054907732@mobile.att.net
>
>
>
>
> ----- Original Message -----
> From: "jas" <jlgerfen@hotmail.com>
> To: <php-db@lists.php.net>
> Sent: Wednesday, February 13, 2002 10:17 PM
> Subject: [PHP-DB] Disable Right click w/ php?
>
>
> : I have been looking on php.net for a function to disallow people to right
> : click to view source... anyone have a good idea of how to accomplish this
> : without using java-script?
> : Thanks in advance,
> : Jas
> :
> :
> :
> : --
> : PHP Database Mailing List (http://www.php.net/)
> : To unsubscribe, visit: http://www.php.net/unsub.php
> :
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Sliante,
Richard S. Crawford
mailto:rscrawford@mossroot.com http://www.mossroot.com
AIM: Buffalo2K ICQ: 11646404 Yahoo!: rscrawford
MSN: underpope@hotmail.com
"It is only with the heart that we see rightly; what is essential is
invisible to the eye." --Antoine de Saint Exupery
"Push the button, Max!"