RE: PHP-HTML-select deny

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> Hi, what can i do, where users can't select and copy my text from
>> web-page.

If you send text to the user, the user can always retrieve that text as
just that.

Whatever secret l33t code you're trying to protect, is just copied from
some dhtml tutorial anyway.  Whatever text on the page you don't want
them to copy, is in their browser cache, available from view source, and
various other things.

On the off chance there might be some unlikely possible reason, e.g.
bank account information and only semi-trustworthy operators, you can
always make it sufficiently difficult that it would be just as easy to
retype it through use of the following:
	* Disable/prevent right click on the page.
	* Disable/prevent onselect action on all elements on the page.
	* Use CSS to make the onselect colors the same as unselected (my
personal favorite, because people absolutely won't expect it, and won't
see any JavaScript that's preventing them).
	* Use JavaScript to catch the copy/paste key events and prevent
them (won't work with Linux/etc. where select auto-copies)
	* Numerous other silly underhanded and effectively pointless
methods which I would be happy to detail to you for the low low cost of
3 easy payments of $29.95 USD.

Keep in mind, all of these are just deterrents - nothing that truly
prevents anything.  For once my email disclaimer *really* applies.

Cheers,
- Martin Norland, Database / Web Developer, International Outreach x3257
The opinion(s) contained within this email do not necessarily represent
those of St. Jude Children's Research Hospital.

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



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux