Ahmad Masykur

Share your knowledge although one function!

About the author

Ahmad Masykur is a Software Architecture Engineer at PT. Freeport Indonesia Jakarta Indonesia.
In this blog, I share things of interest to me. Most topics are likely to be related to software development, but don't hold me to it.

Certificates



Awards


Powered by

Widget Prayer Time not found.

There is an error in XML document (4, 16278).X

Page List

Validators


Ahmad Masykur

Mencegah Print Screen Halaman Web

Hak Atas Kekayaan Intelektual (HAKI) dan Hak Cipta merupakan suatu hak yang harus ditegakkan. Susah-susah membuat tulisan berdasarkan hasil pemikiran sendiri, dengan mudah dalam sekejap dijiplak orang lain dan diaku sebagai hasil karya sendiri.
Sering kali dijumpai beberapa situs tidak bisa disalin halaman web-nya. Orang yang memang punya niat mencuri dengan berbagai cara tetep bisa menyalin isinya dengan cara print-screen, baik dengan tombol yang ada di keyboard maupun dengan software. Dalam tulisan ini akan saya akan membagi trik untuk mencegah tindakan print-screen terhadap halaman web yang kita buat.
Untuk mencegah tindakan print-scrint salah satunya adalah dengan cara menghilangkan isi clipboard secara berkala. Cara tersebut dapat dilakukan dengan script berikut.


function clearImage()
{
    r = window.clipboardData.clearData("Image");
}
ci = setInterval("clearImage()", 10);

Code tersebut akan menghapus data clipboard dengan type Image karena hasil print-screen akan disimpan di clipboard dalam bentuk image.
Catatan: Script ini hanya berjalan di Internet Explorer.
Untuk memastikan bahwa ini berjalan di IE dan tidak menimbulkan error di browser lain perlu adanya pengecekan terlebih dahulu. Script di atas dapat diubah menjadi.

function clearImage() {
    if (window.clipboardData) {
        r = window.clipboardData.clearData("Image");
    }
}
ci = setInterval("clearImage()", 10);

Script di atas saya dapatkan dari dendy=at=ins.co.id di milis PHPUG.
Semoga bermanfaat.


Categories: JavaScript | Tips
Permalink | Comments (27) | Post RSSRSS comment feed

Comments

Modern Lighting United Kingdom | Reply

Monday, December 08, 2008 3:29 AM

Modern Lighting

great code sir..really thanks for sharing..
can i use either function instead of if??
thanks

gel nails Slovakia | Reply

Tuesday, December 09, 2008 11:05 PM

gel nails

Yes Modern guy..you can have it..
But you double if function..You can learn in C language..
thanks..

BMW Republic of the Philippines | Reply

Wednesday, December 10, 2008 3:48 PM

BMW

this is really awesome code..
thanks to gel nails for clear answer..
regards,
hannai

free footy Tunisia | Reply

Thursday, December 11, 2008 1:55 AM

free footy

Great piece of code from you.
Thank you
you are always informative

cheap hosting Nepal | Reply

Monday, December 15, 2008 6:20 PM

cheap hosting

These programming codes have always been a headache to me you know.
But if you think well, these codes can be programmed.

zeolite | Reply

Thursday, December 18, 2008 2:41 PM

zeolite

Nice coding but its a bit difficult for me to understand :S
This is a nice website and i get to learn of programming codes here which i find interesting!

Search Engine Marketing Company United States | Reply

Monday, December 29, 2008 10:46 AM

Search Engine Marketing Company

Yes, difficult to understand but i have found many useful stuffs here on this website. Great one. Keep it up!.

komara Indonesia | Reply

Saturday, January 03, 2009 7:15 PM

komara

Informasi yang bermanfaat..

noni business United States | Reply

Monday, January 05, 2009 9:17 PM

noni business

Nice information but different language from mine. But this is a good website indeed. Keep it up!

Web Hosting Reviews United States | Reply

Wednesday, January 07, 2009 11:24 PM

Web Hosting Reviews

Nice codings..language is a bit to understand though.
Good website.

European Toxic Clan United States | Reply

Saturday, January 10, 2009 2:36 PM

European Toxic Clan

Very good opportunity to learn some programming. This website has offered me a lot concerning programming.
Thanks

Plinian Hjemmeside Hosting United States | Reply

Saturday, January 10, 2009 11:32 PM

Plinian Hjemmeside Hosting

Yes, its a good opportunity to learn something new here.
Very informative website and good posts.

party planning United States | Reply

Friday, January 16, 2009 10:47 AM

party planning

HAKI International manufacture and market scaffolding and temporary weather protection.

College Football Tickets United Kingdom | Reply

Friday, January 23, 2009 2:02 PM

College Football Tickets

Yes, it is easily to understand but i have found many useful stuffs here on this website.

Dubai Hotels United States | Reply

Friday, January 23, 2009 10:46 PM

Dubai Hotels

Nice coding..i have always been learning new types of programming..i like this website for such great tips.

Los Angeles Lawyer United States | Reply

Saturday, January 24, 2009 6:45 PM

Los Angeles Lawyer

Nice programming code. I can understand a bit. Im learning c++ nowadays Smile

fly reels United States | Reply

Wednesday, January 28, 2009 2:30 AM

fly reels

sweet coding..want to learn more on this Smile

Goji business United States | Reply

Monday, February 02, 2009 12:48 PM

Goji business

Hello.
Thanks for this sweet codings.
Very informative website and we get everything concerning programming here!

Hamzah Maru United States | Reply

Monday, February 02, 2009 8:01 PM

Hamzah Maru

terima kasih tipsnya Smile

kampanye damai pemilu indonesia 2009 United States | Reply

Monday, February 02, 2009 11:53 PM

kampanye damai pemilu indonesia 2009

kalo buat wordpress gimana ya bos, bisa ga?

Gucci Clothes United Kingdom | Reply

Tuesday, February 03, 2009 5:44 PM

Gucci Clothes

Mencegah Print Screen Halaman Web.

kampanye damai pemilu indonesia United States | Reply

Tuesday, February 03, 2009 9:08 PM

kampanye damai pemilu indonesia

lah, maksud diatas gw apaan nih.. hiw hiw

Precision Auto Services, Morris NJ United Kingdom | Reply

Friday, February 06, 2009 12:37 AM

Precision Auto Services, Morris NJ

Mengobati Keputihan « KLIPINGKU . . . . . . . . . . dibuang sayang …. - [ Translate this page ]7 Responses to “Mengobati Keputihan”. sofi Says: April 23, 2008 at 2:08 am. untuk mengatasi keputihan, gatal dan bau….resepnya adalah. ...vinosa.wordpress.com/2007/11/16/mengobati -keputihan/ - 57k - Cached - Similar pages - Note thisManfaat Sirih Untuk Mengobati Keputihan - [ Translate this page ]Bagaimana caranya menghilangkan Keputihan pada wanita ? Berbagai obat dan pengobatan melalui dokt [...]


http://www.carserviceautorepair.com/
Experienced, certified mechanics for fine European cars and their owners.  

Organic SEO United States | Reply

Sunday, February 08, 2009 3:58 PM

Organic SEO

The Swedish king Hugleik had also gathered a large army and was supported by the two champions Svipdag and Geigad.

Married Chat United States | Reply

Sunday, February 08, 2009 6:03 PM

Married Chat

Haki and his warriors subdued the Swedish provinces and Haki made himself the king of Sweden. Then he happily sat in peace for three years while his warriors travelled far and wide and amassed fortunes.

Birch Tire and Auto Service United Kingdom | Reply

Tuesday, February 10, 2009 3:25 AM

Birch Tire and Auto Service

Good Year, Toyo, Kumho and other great tire brands in stock.  All common factory maintenance services are available.

Birch Tire and Auto Service United Kingdom | Reply

Tuesday, February 10, 2009 3:25 AM

Birch Tire and Auto Service

Good Year, Toyo, Kumho and other great tire brands in stock.  All common factory maintenance services are available.

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading