         document.addEventListener('contextmenu', function(e) {
      e.preventDefault();
    });

    document.addEventListener('keydown', function(e) {
      if (e.keyCode === 123 || // F12
          (e.ctrlKey && e.shiftKey && e.keyCode === 73) || // Ctrl+Shift+I
          (e.ctrlKey && e.shiftKey && e.keyCode === 74) || // Ctrl+Shift+J
          (e.ctrlKey && e.keyCode === 85) || // Ctrl+U
          (e.ctrlKey && e.shiftKey && e.keyCode === 67) || // Ctrl+Shift+C
          (e.ctrlKey && e.keyCode === 83) || // Ctrl+S
          (e.ctrlKey && e.keyCode === 79)) { // Ctrl+O
        e.preventDefault();
      }
    });
            if (window.innerWidth <= 1024) {
      window.location.href = "https://www.computeromaster.rf.gd/NAMC";
}
(function() {
    const redirectURL = 'https://www.computeromaster.rf.gd/DT';

    const devToolsOpened = function() {
        window.location.href = redirectURL;
    };

    const threshold = 160;
    const checkDevTools = function() {
        const widthThreshold = window.outerWidth - window.innerWidth > threshold;
        const heightThreshold = window.outerHeight - window.innerHeight > threshold;
        if (widthThreshold || heightThreshold) {
            devToolsOpened();
        }
    };

    window.addEventListener('resize', checkDevTools);
    checkDevTools();
})();


    const detectDebugger = function() {
        const element = new Image();
        Object.defineProperty(element, 'id', {
            get: function() {
                devToolsOpened();
                throw new Error('DevTools detected');
            }
        });
        console.log('%c', element);
    };


    const overrideConsole = function() {
        const originalConsoleLog = console.log;
        console.log = function(...args) {
            devToolsOpened();
            originalConsoleLog.apply(console, args);
        };
    };


    setInterval(() => {
        checkDevToolsSize();
        detectDebugger();
    }, 1000);

 
    overrideConsole();
const rateLimit = require('express-rate-limit');

const limiter = rateLimit({
    windowMs: 15 * 60 * 1000, 
    max: 100, 
    message: 'Too many requests from this IP, please try again later.'
});
