Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var message="تمنع سياسة الحماية نسخ المحتوى او فحص الموقع";
- ///////////////////////////////////
- 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>
- <script language="JavaScript">
- //////////F12 disable code////////////////////////
- document.onkeypress = function (event) {
- event = (event || window.event);
- if (event.keyCode == 123) {
- //alert('No F-12');
- return false;
- }
- }
- document.onmousedown = function (event) {
- event = (event || window.event);
- if (event.keyCode == 123) {
- //alert('No F-keys');
- return false;
- }
- }
- document.onkeydown = function (event) {
- event = (event || window.event);
- if (event.keyCode == 123) {
- //alert('No F-keys');
- return false;
- }
- }
- /////////////////////end///////////////////////
- </script>
- <script>
- /*function check(e)
- {
- alert(e.keyCode);
- }*/
- document.onkeydown = function(e) {
- if (e.ctrlKey && (e.keyCode === 67 || e.keyCode === 86 || e.keyCode === 85 || e.keyCode === 117)) {//Alt+c, Alt+v will also be disabled sadly.
- alert('تمنع سياسة الحماية نسخ المحتوى او فحص الموقع');
- }
- return false;
- };
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement