Skip to content

Instantly share code, notes, and snippets.

View whoismh11's full-sized avatar
❄️

Mohammad Hadadpour whoismh11

❄️
View GitHub Profile
@whoismh11
whoismh11 / htaccess-security.md
Created April 8, 2025 11:51
.htaccess Security - Apache .htaccess file security config

No Directory Index

Options -Indexes

.htaccess File Protection

<files ".htaccess">
    order allow,deny
    deny from all
@whoismh11
whoismh11 / dark-mode.css
Last active April 8, 2025 11:52
Dark Mode - Easy dark mode with one line CSS for websites
html {
filter: invert(1) hue-rotate(180deg);
}
@whoismh11
whoismh11 / no-inspect.js
Last active April 8, 2025 11:52
No Inspect - No right click and no inspect JavaScript code for websites
// No RightClick
document.oncontextmenu = new Function("return false;")
// No Inspect
$(document).keydown(function (event) {
if (event.keyCode == 123) { // Prevent F12
return false;
} else if (event.ctrlKey && event.shiftKey && event.keyCode == 73) { // Prevent Ctrl+Shift+I
return false;
} else if (event.ctrlKey && event.shiftKey && event.keyCode == 67) { // Prevent Ctrl+Shift+C
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS