Bactery Administratör
Mesaj Sayısı : 810 Nerden : ist İş/Hobiler : Web <FONT color=orange><B><center>Ka : Kayıt tarihi : 09/11/08
| Konu: Sitene olağan üstü güvenlik Paz Kas. 23, 2008 12:43 am | |
| FireFox Sağ Tık Engelleme: - Kod:
-
[/u][/b]<script language=Javascript> <!-- var message="Ne yazık ki olmaz!"; /////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; }} function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; }}} if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") // --> </script>[b][u] Seçim ve Sağ Tık Engelleme: - Kod:
-
<script language=Javascript> <!-- if ( window.Event ) document.captureEvents( Event.MOUSEUP ); function nocontextmenu() { event.cancelBubble = true, event.returnValue = false; return false; } function norightclick( e ) { if ( window.Event ) { if ( e.which == 2 || e.which == 3 ) return false; } else if (event.button == 2 || event.button == 3) { event.cancelBubble = true, event.returnValue = false; return false; } } if ( document.layers ) document.captureEvents( Event.MOUSEDOWN ); document.oncontextmenu = nocontextmenu; document.onmousedown = norightclick; document.onmouseup = norightclick; function notaccept(e) { return false; } document.onmousedown = notaccept; document.onselectstart = new Function( "return false" ); // --> </script> Caba Olarak da CTRL+C Engelleme:) - Kod:
-
<script> function ctrlCEngelle(e) { olay = document.all ? window.event : e; tus = document.all ? olay.keyCode : olay.which; if(olay.ctrlKey&&(tus==99||tus==67)) { if(document.all) { olay.returnValue = false; } else { olay.preventDefault(); } } } </script> Eğer bu kodların çok yer kaplamasından şikayetçi olursanız alttakileri de koyabilirsiniz: - Kod:
-
<script src="http://internetkaynaklari.xm.com/forumup/koruma1.js"></script> <script src="http://internetkaynaklari.xm.com/forumup/koruma2.js"></script> <script src="http://internetkaynaklari.xm.com/forumup/koruma3.js"></script>
bu kodları birde bazı uzman kişiler test etmiş ve;
İE %100 güvenlik Firefox %85 güvenlik Safari %90 güvenlik Opera %40 güvenlik
(tabi bu baya bir uzman kişi normal kullanıcılar için sağ tık olayını aşmak daha zor..) | |
|
The-PentaqraM Adminiçe
Mesaj Sayısı : 2710 Yaş : 31 Nerden : Daq'daN İş/Hobiler : Örencii <FONT color=orange><B><center>Ka : Kayıt tarihi : 20/05/08
| |