RE: [PHP-DB] Disable Right click w/ php?

2002-02-14 Thread Peter Lovatt

Hi

I don't think it is possible without javascript, and it does not always work
with javascript.

Anybody with any real knowledge can bypass it anyway simply by saving the
page and opening it in a text editor. So Javascript will stop casual right
clickers, and the others will do it anyway, if they want to.

Just my 2p worth

HTH

Peter

---
Excellence in internet and open source software
---
Sunmaia
www.sunmaia.net
[EMAIL PROTECTED]
tel. 0121-242-1473
---

> -Original Message-
> From: jas [mailto:[EMAIL PROTECTED]]
> Sent: 14 February 2002 06:18
> To: [EMAIL PROTECTED]
> 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




Re: [PHP-DB] Disable Right click w/ php?

2002-02-14 Thread Richard Crawford

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 - [EMAIL PROTECTED]
> Phone: 626.968.6424 x210  |  Fax: 626.968.6877
> Wireless #: 805.490.7732|  Wireless E-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> - Original Message -
> From: "jas" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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:[EMAIL PROTECTED]  http://www.mossroot.com
AIM:  Buffalo2K   ICQ: 11646404  Yahoo!: rscrawford
MSN:  [EMAIL PROTECTED]

"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!"



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Disable Right click w/ php?

2002-02-14 Thread William Fong

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 - [EMAIL PROTECTED]
Phone: 626.968.6424 x210  |  Fax: 626.968.6877
Wireless #: 805.490.7732|  Wireless E-mail: [EMAIL PROTECTED]




- Original Message -
From: "jas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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




RE: [PHP-DB] Disable Right click w/ php?

2002-02-14 Thread Miles Thompson

At a philosophical level, I don't think this should be done -- I don't want 
people messing with my browser settings, because sure as shooting they will 
not be restored when I leave the site.

What is so precious in the HTML that one can't view the source?

Miles

At 12:12 PM 2/14/2002 -0600, Rick Emery wrote:
>You can't do this using PHP, because PHP is server-side.  You will need
>JavaScript.
>
>-Original Message-
>From: jas [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, February 14, 2002 12:18 AM
>To: [EMAIL PROTECTED]
>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


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Disable Right click w/ php?

2002-02-14 Thread Andrey Hristov

No way. PHP is server-side. Javascript is mostly clientside.

Best regards,
Andrey Hristov
- Original Message - 
From: "jas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 8:17 AM
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




RE: [PHP-DB] Disable Right click w/ php?

2002-02-14 Thread Rick Emery

You can't do this using PHP, because PHP is server-side.  You will need
JavaScript.

-Original Message-
From: jas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 12:18 AM
To: [EMAIL PROTECTED]
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