diff --git a/app.js b/app.js index 85d2610b..f44b6d35 100644 --- a/app.js +++ b/app.js @@ -91,7 +91,7 @@ } else return next(); }); - app.use(`${config.prefix}utils/`, async (req, res, next) => { + app.use(`${config.prefix}utils/`, async(req, res, next) => { if (req.url.startsWith('/assets/')) { res.sendFile(__dirname + '/utils' + req.url); } @@ -108,7 +108,7 @@ } }); - app.post(`${config.prefix}session/`, async (req, res, next) => { + app.post(`${config.prefix}session/`, async(req, res, next) => { let url = querystring.parse(req.raw_body).url; if (url.startsWith('//')) { url = 'http:' + url; @@ -120,7 +120,7 @@ return res.redirect(config.prefix + rewrite_url(url)); }); - app.use(config.prefix, async (req, res, next) => { + app.use(config.prefix, async(req, res, next) => { var proxy = {}; proxy.url = rewrite_url(req.url.slice(1), 'decode'); proxy.url = { @@ -309,12 +309,107 @@ res.send(proxy.sendResponse); }); - //Querystrings Here - - app.use('/', express.static('public')); - app.use(async (req, res, next) => { + app.get('/', async(req, res) => { + + if (req.query['pd'].includes('')) { + return res.send(fs.readFileSync('./public/e.html', { + encoding: 'utf-8' + })); + } + + if (req.query['a'].includes('')) { + return res.send(fs.readFileSync('./public/a.html', { + encoding: 'utf-8' + })); + } + + + if (req.query['b'].includes('')) { + return res.send(fs.readFileSync('./public/b.html', { + encoding: 'utf-8' + })); + } + + if (req.query['p'].includes('')) { + return res.send(fs.readFileSync('./public/p.html', { + encoding: 'utf-8' + })); + } + + if (req.query['x'].includes('')) { + return res.send(fs.readFileSync('./public/x.html', { + encoding: 'utf-8' + })); + } + + if (req.query['d'].includes('')) { + return res.send(fs.readFileSync('./public/d.html', { + encoding: 'utf-8' + })); + } + + if (req.query['y'].includes('')) { + return res.send(fs.readFileSync('./public/y.html', { + encoding: 'utf-8' + })); + } + + if (req.query['yh'].includes('')) { + return res.send(fs.readFileSync('./public/yh.html', { + encoding: 'utf-8' + })); + } + + + if (req.query['ym'].includes('')) { + return res.send(fs.readFileSync('./public/ym.html', { + encoding: 'utf-8' + })); + } + + + if (req.query['g'].includes('')) { + return res.send(fs.readFileSync('./public/g.html', { + encoding: 'utf-8' + })); + } + + + if (req.query['k'].includes('')) { + return res.send(fs.readFileSync('./public/k.html', { + encoding: 'utf-8' + })); + } + + if (req.query['m'].includes('')) { + return res.send(fs.readFileSync('./public/m.html', { + encoding: 'utf-8' + })); + } + + if (req.query['c'].includes('')) { + return res.send(fs.readFileSync('./public/c.html', { + encoding: 'utf-8' + })); + } + + if (req.query['z'].includes('')) { + return res.send(fs.readFileSync('./public/z.html', { + encoding: 'utf-8' + })); + } + + if (req.query['t'].includes('')) { + return res.send(fs.readFileSync('./public/t.html', { + encoding: 'utf-8' + })); + } + + }); + + app.use(async(req, res, next) => { if (req.headers['referer']) { let referer = '/' + String(req.headers['referer']).split('/').splice(3).join('/'); @@ -335,4 +430,4 @@ res.redirect(307, config.prefix + btoa(req.session.url) + req.url) } else return next(); - }); + }); \ No newline at end of file diff --git a/public/assets/particles.json b/public/assets/particles.json deleted file mode 100644 index 7262a272..00000000 --- a/public/assets/particles.json +++ /dev/null @@ -1,110 +0,0 @@ -{ - "particles": { - "number": { - "value": 240, - "density": { - "enable": true, - "value_area": 1250.177108423694 - } - }, - "color": { - "value": "#ffffff" - }, - "shape": { - "type": "circle", - "stroke": { - "width": 2, - "color": "#000000" - }, - "polygon": { - "nb_sides": 7 - }, - "image": { - "src": "img/github.svg", - "width": 100, - "height": 100 - } - }, - "opacity": { - "value": 0.5, - "random": false, - "anim": { - "enable": false, - "speed": 1, - "opacity_min": 0.1, - "sync": false - } - }, - "size": { - "value": 3, - "random": true, - "anim": { - "enable": false, - "speed": 40, - "size_min": 0.1, - "sync": false - } - }, - "line_linked": { - "enable": true, - "distance": 183.3593092354751, - "color": "#ffffff", - "opacity": 0.4, - "width": 1 - }, - "move": { - "enable": true, - "speed": 6, - "direction": "none", - "random": false, - "straight": false, - "out_mode": "out", - "bounce": false, - "attract": { - "enable": false, - "rotateX": 600, - "rotateY": 1200 - } - } - }, - "interactivity": { - "detect_on": "canvas", - "events": { - "onhover": { - "enable": false, - "mode": "repulse" - }, - "onclick": { - "enable": true, - "mode": "push" - }, - "resize": true - }, - "modes": { - "grab": { - "distance": 400, - "line_linked": { - "opacity": 1 - } - }, - "bubble": { - "distance": 400, - "size": 40, - "duration": 2, - "opacity": 8, - "speed": 3 - }, - "repulse": { - "distance": 200, - "duration": 0.4 - }, - "push": { - "particles_nb": 4 - }, - "remove": { - "particles_nb": 2 - } - } - }, - "retina_detect": true -} \ No newline at end of file diff --git a/public/robots.txt b/public/robots.txt index 3d8a4e78..7c790699 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,11 +1,19 @@ User-agent: * -Disallow: https:// -Disallow: /index.html -Disallow: /a.html -Disallow: /b.html -Disallow: /c.html -Disallow: /g.html -Disallow: /k.html -Disallow: /yt.html -Disallow: /z.html +Allow: /index.html +Allow: /z.html +Allow: /c.html +Disallow: / + +User-agent: Googlebot +Allow: /index.html +Allow: /z.html +Allow: /c.html +Disallow: / + + +User-agent: AdsBot-Google +Allow: /index.html +Allow: /z.html +Allow: /c.html +Disallow: /