Prevent Copy Paste

document.addEventListener(“contextmenu”, (evt) => { evt.preventDefault(); }, false); document.addEventListener(“copy”, (evt) => { evt.clipboardData.setData(“text/plain”, “You must pay a premium subscription to copy our content”); evt.preventDefault(); }, false);Continue reading

SBI – Make images B/W

.sbi_photo_wrap { -webkit-filter: grayscale(100%); /* Safari 6.0 – 9.0 */ filter: grayscale(100%); } .sbi_photo_wrap:hover { -webkit-filter: none; /* Safari 6.0 – 9.0 */ filter: none; }Continue reading

Head Segment ID Identification

session_start(); ob_start(); if(isset($_SESSION[‘SEGMENTID’])): $SegementID = $_SESSION[‘SEGMENTID’]; else: $n = rand(10e16, 10e20); $_SESSION[‘SEGMENTID’] = base_convert($n, 10, 36);endif; if ( is_user_logged_in() ) { $_SESSION[‘USERSTATUS’] = “LOGGED_IN”; } else { $_SESSION[‘USERSTATUS’] = “LOGGED_OUT”; }Continue reading