rramiachraf / dumb

Private alternative front-end for Genius.
MIT License
201 stars 18 forks source link

Empty page #21

Closed EsmailELBoBDev2 closed 6 months ago

EsmailELBoBDev2 commented 1 year ago

Hi, I self host dumb.esmailelbob.xyz and I noticed I do not get any data. in logs there is no error just listening on port 5555...

https://dumb.esmailelbob.xyz/Ed-sheeran-shape-of-you-lyrics

I use debian 11 with go 1.19. Tried to rebuild but same problem.

rramiachraf commented 1 year ago

Hi @EsmailELBoBDev2,

Unfortunately I don't have access to my computer right now to diagnose this error, I will tune the logging system in the next few days and try to see If it'll help with solving this issue or at least give us a hint.

Sincerely.

EsmailELBoBDev2 commented 1 year ago

Yeah sure and I removed / in reverse proxy but still no luck so let's hope logging will tell us

rramiachraf commented 1 year ago

I have tweaked the logger a bit, could you take the time to pull the latest version and rebuilding it and see if it gives any hint of what the problem you're encountering with your instance, and feel free to share your output here.

EsmailELBoBDev2 commented 1 year ago

Nope, still same output level...

./dumb 
INFO[0000] server is listening on port 5555             
rramiachraf commented 1 year ago

Did you give the docker image a try?

EsmailELBoBDev2 commented 1 year ago

Well, I think I'm cursed

sudo docker run -p 5555:5555 ec6d9726886a
time="2023-01-23T13:53:40Z" level=info msg="server is listening on port 5555\n"
rramiachraf commented 1 year ago

Not at all, the project is still very young and issues like this are the expected.

I'll do my part to diagnose it, in the mean time could you share with me the HTML code from Genius lyrics page specifically from your instance and paste into a Pastebin or something.

EsmailELBoBDev2 commented 1 year ago

Here we go from my instance: https://pastebin.com/raw/UZzS5T84

rramiachraf commented 1 year ago

Sorry I meant the actual genius.com, I want to analyze if It actually getting data correctly.

EsmailELBoBDev2 commented 1 year ago

Ah, to be honest all lyrics do not work not only one so yes. but where we go: https://privatebin.io/?e16b8701ae16e39d#8KVwkvRYV1362jVWPjJwJvkdd9u1cXxLKZ2nog8HVwdB

EsmailELBoBDev2 commented 1 year ago

A friendly reminder, it still does not work https://dumb.esmailelbob.xyz/James-arthur-say-you-wont-let-go-lyrics

rramiachraf commented 1 year ago

Which Go version are you currently using?

EsmailELBoBDev2 commented 1 year ago

go version go1.19 linux/amd64

EsmailELBoBDev2 commented 1 year ago

@rramiachraf any new updates?? I posted log on #23

EsmailELBoBDev2 commented 1 year ago

UPDATED: After docker deployment it's still blank page. and trying PR broke it.

rramiachraf commented 1 year ago

Images seems to be doing just fine on your instance: https://dumb.esmailelbob.xyz/images/071a819f088609ee9d24b2dba4546b23.1000x1000x1.jpg. The problem you're facing has to do with the lyrics handler which I'm having a hard time trying to reproduce on my machine.

EsmailELBoBDev2 commented 1 year ago

The problem you're facing has to do with the lyrics handler which I'm having a hard time trying to reproduce on my machine.

If I can dm you and tell you all packages I use, maybe you can then reproduce it.

rramiachraf commented 1 year ago

I'm reachable by email (included on my bio), but I think it's better to discuss related issues here, since perhaps someone could be facing the same problem and it would be much easier to follow.

rramiachraf commented 1 year ago

Could you give GOTRACEBACK=all environment variable a try to get a more thorough stack trace.

EsmailELBoBDev2 commented 1 year ago

Fine, so I use Debian 11. (Kernel: 5.10.0-21-amd64) Go version is: go version go1.19 linux/amd64

The logs:

INFO[0000] server is listening on port 5555             
2023/03/01 23:00:39 http: panic serving 127.0.0.1:33526: runtime error: index out of range [1] with length 0
goroutine 11 [running]:
net/http.(*conn).serve.func1()
        /usr/local/go/src/net/http/server.go:1850 +0xbf
panic({0x7d4000, 0xc0145ea4c8})
        /usr/local/go/src/runtime/panic.go:890 +0x262
main.lyricsHandler({0x8a2ce0, 0xc01407e0e0}, 0xc000090300)
        /home/debian/docker-compose/dumb/lyrics.go:130 +0x64b
net/http.HandlerFunc.ServeHTTP(0x785480?, {0x8a2ce0?, 0xc01407e0e0?}, 0x16?)
        /usr/local/go/src/net/http/server.go:2109 +0x2f
main.securityHeaders.func1({0x8a2ce0, 0xc01407e0e0}, 0xc013609ad0?)
        /home/debian/docker-compose/dumb/utils.go:50 +0x2e7
net/http.HandlerFunc.ServeHTTP(0xc000090200?, {0x8a2ce0?, 0xc01407e0e0?}, 0x2def98979?)
        /usr/local/go/src/net/http/server.go:2109 +0x2f
github.com/gorilla/mux.(*Router).ServeHTTP(0xc01406e000, {0x8a2ce0, 0xc01407e0e0}, 0xc000090100)
        /home/debian/go/pkg/mod/github.com/gorilla/mux@v1.8.0/mux.go:210 +0x1cf
net/http.serverHandler.ServeHTTP({0xc013609920?}, {0x8a2ce0, 0xc01407e0e0}, 0xc000090100)
        /usr/local/go/src/net/http/server.go:2947 +0x30c
net/http.(*conn).serve(0xc000001900, {0x8a31a0, 0xc013609830})
        /usr/local/go/src/net/http/server.go:1991 +0x607
created by net/http.(*Server).Serve
        /usr/local/go/src/net/http/server.go:3102 +0x4db
rramiachraf commented 1 year ago

Bear with me a little bit, I hope the next commits will fix this.

EsmailELBoBDev2 commented 1 year ago

Bear with me a little bit, I hope the next commits will fix this.

It's ok, and because I understand nothing in go. All I can help with is testing and provide logs so feel free to @EsmailELBoBDev2 at any time.

rramiachraf commented 1 year ago

Hello @EsmailELBoBDev2, hope you're doing well, I've just added the ability to search for songs, and your feedback would be much appreciated to see if things are working correctly.

EsmailELBoBDev2 commented 1 year ago

Hello @rramiachraf, Yeah no I'm cursed... It returns empty page in search: https://dumb.esmailelbob.xyz/search?q=Doja+cat (I installed: go get github.com/PuerkitoBio/goquery as mentioned when I tried to build dumb) and tried both docker and go version.

rramiachraf commented 1 year ago

Hi @EsmailELBoBDev2, did you try running the instance locally on your own machine? does it act the same way as the hosted version?. I think I might have a clue on what is happening, the genius server is behind a Cloudflare proxy, and when your server's IP hit theirs, the proxy gets in the way and no errors get logged since the request went fine and the DOM got processed correctly.

EsmailELBoBDev2 commented 1 year ago

Sadly I can't test on my personal pc. is there ping or curl command to make sure I'm not blocked by cloudflare proxy?

rramiachraf commented 1 year ago

None that I know of :(

EsmailELBoBDev2 commented 1 year ago

I mean there is something that might work, buy an extra IPv4 or IPv6 IP only to use for dumb in case of it actually blocks server's IP. but if cloudflare blocks it why all the time? no matter what.

EsmailELBoBDev2 commented 1 year ago

After, curl(ing) seems you are right, darn it cloudflare!

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Genius</title>
    <style>*{box-sizing:border-box}body{width:100%;margin:0;color:#fff;background:#000;font-family:Helvetica Neue,Arial,Helvetica,Geneva,sans-serif;font-size:20px;font-weight:700}a,a:active,a:focus{color:#3d85c6;text-decoration:none}a:hover{border-bottom:1px dotted}header{background-color:#ffff64;padding:10px;color:#000}header img{height:20px;display:block;margin:0 auto}main{max-width:860px;margin:0 auto}.text{text-align:center}.alert{margin:40px 20px}h1{font-size:7.5rem;text-transform:uppercase;font-weight:700;margin:0}@media screen and (max-width:420px){h1{font-size:3.5rem}}.distractions{margin:3rem auto 0;width:100%;max-width:700px}.iframe-container{width:100%;height:0;padding-top:56.25%;position:relative}.iframe-container iframe{max-width:100%;max-height:100%;position:absolute;top:0;left:0}</style>
    <style type="text/css">.cloudflare_content{margin-top:2rem}#recaptcha_widget{display:flex;justify-content:center}</style>
    <script type="text/javascript">!function(e,a){var t,n,i,l;a.__SV||((window.mixpanel=a)._i=[],a.init=function(e,t,n){function o(e,t){var n=t.split(".");2==n.length&&(e=e[n[0]],t=n[1]),e[t]=function(){e.push([t].concat(Array.prototype.slice.call(arguments,0)))}}var p=a;for(void 0!==n?p=a[n]=[]:n="mixpanel",p.people=p.people||[],p.toString=function(e){var t="mixpanel";return"mixpanel"!==n&&(t+="."+n),e||(t+=" (stub)"),t},p.people.toString=function(){return p.toString(1)+".people (stub)"},i="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" "),l=0;l<i.length;l++)o(p,i[l]);var r="set set_once union unset remove delete".split(" ");p.get_group=function(){function e(e){t[e]=function(){call2_args=arguments,call2=[e].concat(Array.prototype.slice.call(call2_args,0)),p.push([n,call2])}}for(var t={},n=["get_group"].concat(Array.prototype.slice.call(arguments,0)),o=0;o<r.length;o++)e(r[o]);return t},a._i.push([e,t,n])},a.__SV=1.2,(t=e.createElement("script")).type="text/javascript",t.async=!0,t.src="undefined"!=typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js",(n=e.getElementsByTagName("script")[0]).parentNode.insertBefore(t,n))}(document,window.mixpanel||[]),mixpanel.init("77967c52dc38186cc1aadebdd19e2a82");</script>
    <script type="text/javascript">/* eslint-env browser */
/* globals mixpanel */
/* eslint-disable no-unused-vars */
const METRICS_URL = 'https://librato-collector.genius.com/v1/metrics';

function sendToLibrato(body) {
  if (navigator.sendBeacon) {
    navigator.sendBeacon(
      METRICS_URL,
      new Blob([JSON.stringify(body)], {type: 'application/json'})
    );
  } else {
    fetch(
      METRICS_URL,
      {
        method: 'POST',
        body: JSON.stringify(body),
        headers: {'Content-Type': 'application/json'},
      }
    );
  }
}

function count(name, {source}, extra = {}) {
  sendToLibrato({counters: [{name, value: 1, source}]});
  mixpanel.track(name, Object.assign({source}, extra));
}
</script>

</head>
  <body>
    <header>
      <img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTUiPjxwYXRoIGQ9Ik0xMS43IDIuOXMwLS4xIDAgMGMtLjgtLjgtMS43LTEuMi0yLjgtMS4yLTEuMSAwLTIuMS40LTIuOCAxLjEtLjIuMi0uMy40LS41LjZ2LjFjMCAuMS4xLjEuMS4xLjQtLjIuOS0uMyAxLjQtLjMgMS4xIDAgMi4yLjUgM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4yLTEuOS0xLjVsLTEuNC0uM2MtMy4yLS42LTMuOC0yLjMtMy44LTMuNiAwLS43LjItMS4zLjYtMS45di0uMmMwLS4xLS4xLS4xLS4xLS4xLTEuNS43LTIuMyAxLjktMi4zIDMuNC0uMSAyLjMgMS4zIDMuNyA0IDQuMXptNS4yIDMuMmMtLjEuMS0uMS4xIDAgMC0uOS40LTEuOC42LTIuOC42LTEuNiAwLTMtLjUtNC4zLTEuNC0uMy0uMy0uNS0uNi0uNS0xIDAtLjEgMC0uMS0uMS0uMXMtLjMtLjEtLjQtLjFjLS40IDAtLjguMi0xLjEuNi0uMi4zLS40LjctLjMgMS4xLjEuNC4zLjcuNiAxIDEuNCAxIDIuOCAxLjUgNC41IDEuNSAyIDAgMy43LS43IDQuNS0xLjl2LS4xYzAtLjEgMC0uMi0uMS0uMnoiLz48cGF0aCBkPSJNOTQuMSAzLjJjMCAuMS4xLjEuMS4xaC4yYzEuMSAwIDEuNy4zIDIuNC44LjMuMi42LjMgMSAuM3MuOC0uMiAxLjEtLjZjLjItLjMuMy0uNi4zLS45IDAtLjEgMC0uMS0uMS0uMS0uMiAwLS4zLS4xLS41LS4yLS44LS42LTEuNC0uOS0yLjYtLjktMS4yIDAtMiAuNi0yIDEuNC4xIDAgLjEgMCAuMS4xeiIvPjwvc3ZnPgo=" alt="Genius logo"/>
    </header>
    <main>
      <div class="text alert">
        <h1>Scrrrr!!</h1>
        <div class="dek">Sorry, we have to make sure you're a human before we can show you this page.</div>
        <div class="cloudflare_content">
          <form id="challenge-form" class="challenge-form" action="/Jeff-grecia-elevate-lyrics?__cf_chl_f_tk=rgUKO8SN3TVemYkMAlzxJ_Tx3tVn9n4JHZpohs2Xtg0-1678729748-0-gaNycGzNCJA" method="POST" enctype="application/x-www-form-urlencoded">
    <div id="cf-please-wait">
        <div id="spinner">
            <div id="cf-bubbles">
                <div class="bubbles"></div>
                <div class="bubbles"></div>
                <div class="bubbles"></div>
            </div>
        </div>
        <p id="cf-spinner-please-wait">Please stand by, while we are checking your browser...</p>
        <p id="cf-spinner-redirecting" style="display:none">Redirecting...</p>
    </div>
    <input type="hidden" name="md" value="YPU6Ulhj2Y2DznknaxE1uR.hHfpKUzcRmYkQ6l4FO44-1678729748-0-AVdWVCFN6qZtFRTd3RVu5dH7dWc-ji8XEE5C7EI0JXTLTkfBBwDK3u52rCKna-c_K6bHub9aTDe5Z2JQzFrzkxADAm2UrmDCeIaBbnZZWyEDuDAaDPmQQYVfPDugWtNq_nKDnVNK75oCMu9OqCUXqcjTkQZiBs3quRXZ1hNoOfix-VdrlAlrPGtKcdNYVJmo4KGvCmT8mqUQ6zUeWZIHAETGLWGJg8eqNXHF0TNC7jP6-VFPEOmim0Gm00pIsjHG1Bfwf4UfuB3dWyV0Tft6qv6ydgQSe4OxZ8jwlbD2XpuNJ3bpTJXJs_thbqGCh700HGdl1UVWaT-2EEf-IF4FMkFEe-Q1mIQWtOSH7iEOXfG85hOzQ-MQnD2fr5WM2nO3ydE4w4S5eH2s3lcc9bCjfZhWqlwamGLJCPec6wz51XkDLO8Gr9lIYp6-XktKowRT1TWFjZk0gvAYfKMSkukPsxX3OZX1j-Mx52RKyIImWirjLLe3uun_I82A71xwbFIdam4AVHVs5ObmeDSP2ZajEEkHnLVEL6y-uEdlDKvkfUXIm3xyXntR-QelZammBFM4JYAKW1kxKvo9iGee8b8vb6j760-ctwoU-AaFssMuCcL1CNKbJnzhyI_PCSm2MSDMI1VtmlAqAKJHgA6RElw116l5z6leO5ebFSOFiuWci_KeFJS92iNGveJ3lpMVjdNTAeqeEAyK-znobLX_WGF74BVjYwRgZ1ChX9jLDrBRHJvP6fShghal2LF62d6iEV7hrkChgQYLFrKlYBV-2bukJU5UmSWC6Fa__c9VOJM_kUW1vxlDfvx6BE6nCsG3mLC2Ehg9MuqG6GVogH0xXz0KKHUdbCv_VeyT2EC1jjI5LYhad19vLdfOqbxu4xyCVZiO_l2I4SlOjkeTjXEzx1TkgoWS-7Yo55gAIoXcrbkpaj-M_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mcASlr4Di4RDosoI-y4wu3Jzd4LXfmjplW_eUDrhtgiAL7p31Wukzvi1saW0Ga8YXsTvMwn1XY92xtkilvFZnzM8w9MZo4xDAWM1SCrBQoIPwd30" />
    <noscript id="cf-captcha-bookmark" class="cf-captcha-info">
        <h1 style="color:#bd2426;">Please turn JavaScript on and reload the page.</h1>
    </noscript>
    <div id="no-cookie-warning" class="cookie-warning" style="display:none">
        <p style="color:#bd2426;">Please enable Cookies and reload the page.</p>
    </div>
    <div id="trk_jschal_js" style="display:none;background-image:url('/cdn-cgi/images/trace/captcha/nojs/transparent.gif?ray=7a761c9d2a2da1e6')"></div>
</form>
<script>
    (function(){
        window._cf_chl_opt={
            cvId: '2',
            cZone: 'genius.com',
            cType: 'interactive',
            cNounce: '76833',
            cRay: '7a761c9d2a2da1e6',
            cHash: '9327c450be0f1b0',
            cUPMDTk: "\/Jeff-grecia-elevate-lyrics?__cf_chl_tk=rgUKO8SN3TVemYkMAlzxJ_Tx3tVn9n4JHZpohs2Xtg0-1678729748-0-gaNycGzNCJA",
            cFPWv: 'b',
            cTTimeMs: '1000',
            cMTimeMs: '0',
            cTplV: 1,
            cTplB: 'cf',
            cK: "",
            cRq: {
                ru: 'aHR0cHM6Ly9nZW5pdXMuY29tL0plZmYtZ3JlY2lhLWVsZXZhdGUtbHlyaWNz',
                ra: 'Y3VybC83Ljc0LjA=',
                rm: 'R0VU',
                d: 'HcGNrlN0HgH0g6sKI2NwrGwrBPpYlge9PkUEafiLnTcgbHqLqwDIYybVWyIILUo3Lwqu+bzPlRBhNFdD6mJ6TlOzWic/uDXTt4B3u8MpEq3YqtQpOku6S5Ozwun+ZN+ISa4GSVqrw2v0OVWohvtlcCUe5QC5GNgIhn7F9vtqYq8sdudgjOs9hVbblmqaDksk7x7ub7DRSYEa7LRBLhfFumgC3Qbj2X90UBpuMyD8l0225GpamxgxGS6wteAGQZvZQ9ZQpH0Jntxrstaihwp7ANt3SvQerp1hlu+ytebcNd6pfmJkrd35AzgJ2165tTF2FG8KfQwxZXfB+Y7m6MlqEpj67vu8q/420ksJAADTzgVOJHZpeHMH2Hvhtq+SLyJ6j3uCe81wJBS4cAWmcNsHM9w+MjFkFfyZdEewhsi0MNeRLjMG7z/MUotQhZMfhlvyKBcXxCIMPkaxAHaAYiTDc8w8eYg87/jVOMA8xP4rkY3pcihfainwFRwPhfHh0HpZ0wHPGTz5WJ8xokC6ueNFHayiX6rhjTDG3lh1If7nh/g2M7FUv17EK4fJJAtjfHjxW30BrA2fBHf5gUpHI6UA3yqvLRTks3Q7yIuTn3pYntOQQGcGEiTEJhKeTCf6vJVUIRE8qPH4N2FZqCByYgD8FHDAelBDdbsvPTdhotXw84FGB5tj7tjTnMRFe3tuWWPvlX3ki/G6MrJSvDM78SzvGA==',
                t: 'MTY3ODcyOTc0OC4wMzUwMDA=',
                m: 'Yv++I+ZOJDMpb/LIXLOs9W+AtTwgKVcimrVi30CiRFI=',
                i1: 'WonwoXyvIYN0h+HmUtNIUQ==',
                i2: '7AtnsQTBx2v+Bw/iW9Fhfg==',
                zh: 'CjTVwn9XNZkq0esm2p7N7xf+k6qzISv05qP4sHAkLrw=',
                uh: 'zu+cQgicc5rF6Q8HHTJhdGCD3QVkjetpkn+QXGMpZBU=',
                hh: '32aD8UBAl18mYvSTL2321kh0bo8zGh3sVHE1rNoLb3A=',
            }
        };
        var trkjs = document.createElement('img');
        trkjs.setAttribute('src', '/cdn-cgi/images/trace/captcha/js/transparent.gif?ray=7a761c9d2a2da1e6');
        trkjs.setAttribute('alt', '');
        trkjs.setAttribute('style', 'display: none');
        document.body.appendChild(trkjs);
        var cpo = document.createElement('script');
        cpo.src = '/cdn-cgi/challenge-platform/h/b/orchestrate/captcha/v1?ray=7a761c9d2a2da1e6';
        window._cf_chl_opt.cOgUHash = location.hash === '' && location.href.indexOf('#') !== -1 ? '#' : location.hash;
        window._cf_chl_opt.cOgUQuery = location.search === '' && location.href.slice(0, location.href.length - window._cf_chl_opt.cOgUHash.length).indexOf('?') !== -1 ? '?' : location.search;
        if (window.history && window.history.replaceState) {
            var ogU = location.pathname + window._cf_chl_opt.cOgUQuery + window._cf_chl_opt.cOgUHash;
            history.replaceState(null, null, "\/Jeff-grecia-elevate-lyrics?__cf_chl_rt_tk=rgUKO8SN3TVemYkMAlzxJ_Tx3tVn9n4JHZpohs2Xtg0-1678729748-0-gaNycGzNCJA" + window._cf_chl_opt.cOgUHash);
            cpo.onload = function() {
                history.replaceState(null, null, ogU);
            };
        }
        document.getElementsByTagName('head')[0].appendChild(cpo);
    }());
</script>

        </div>
      </div>

      <div class="text distractions">
        <p>
          <a href="https://twitter.com/genius" class="twitter-follow-button" data-show-count="true" data-size="large" data-dnt="true">Follow @genius</a>
          <script>!function(t,e,r){var n,s=t.getElementsByTagName(e)[0],i=/^http:/.test(t.location)?"http":"https";t.getElementById(r)||((n=t.createElement(e)).id=r,n.src=i+"://platform.twitter.com/widgets.js",s.parentNode.insertBefore(n,s))}(document,"script","twitter-wjs");</script>
        </p>
      </div>
    </main>
    <script type="text/javascript">count("cloudflare_error.challenge",{source:"cloudflare"});</script>
  </body>
</html>
rramiachraf commented 1 year ago

At least now we know what is actually happening :D

EsmailELBoBDev2 commented 1 year ago

Yeah, the positive side...hmm any ideas to bypass it? maybe proxy inside dumb or another way to scrape data. best thing I can see is buy another IP or use vpn specifically for dumb to use

xbdmHQ commented 1 year ago

I setup dumb on docker-compose and i can't use the search or dumb in general on my instance, is it broken?

NoPlagiarism commented 1 year ago

@xbdmHQ

the genius server is behind a Cloudflare proxy

Try curling to genius from your server to check if it works

xbdmHQ commented 1 year ago

@xbdmHQ

the genius server is behind a Cloudflare proxy

Try curling to genius from your server to check if it works

If we have to do that, seems it just dumb coded wrong. Other services works behind cloudflare and it just a privacy frontend.

xbdmHQ commented 1 year ago

@xbdmHQ

the genius server is behind a Cloudflare proxy

Try curling to genius from your server to check if it works

Cloudflare was blocking it, but fixed but still don't work lol:

<!DOCTYPE html>
<html>
<head>
<title>dumb</title>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="/static/style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<main id="app">
<nav>
<a href="/"><img src="/static/logo.svg" /></a>
</nav>
<div id="home">
<div>
<h1>Welcome to dumb</h1>
<p>An alternative frontend for genius.com</p>
</div>
<form method="GET" action="/search">
<input type="text" name="q" id="search-input" placeholder="Search..." />
</form>
</div>
<footer>
<a rel="noopener noreferrer" target="_blank" href="https://github.com/rramiachraf/dumb">Source Code</a>
</footer>
</div>
<script>(function(){var js = "window['__CF$cv$params']={r:'7d5b0f2f5a0891ed',m:'BHh7Z0sSFu1J.wpXrd07fCHElEJB3LI_Q9KqPeOruXk-1686499146-0-AXjRzqg9cn0YC5+64qjvEitcGivCEFpWjny+L9nq2h3Z'};_cpo=document.createElement('script');_cpo.nonce='',_cpo.src='/cdn-cgi/challenge-platform/scripts/invisible.js',document.getElementsByTagName('head')[0].appendChild(_cpo);";var _0xh = document.createElement('iframe');_0xh.height = 1;_0xh.width = 1;_0xh.style.position = 'absolute';_0xh.style.top = 0;_0xh.style.left = 0;_0xh.style.border = 'none';_0xh.style.visibility = 'hidden';document.body.appendChild(_0xh);function handler() {var _0xi = _0xh.contentDocument || _0xh.contentWindow.document;if (_0xi) {var _0xj = _0xi.createElement('script');_0xj.nonce = '';_0xj.innerHTML = js;_0xi.getElementsByTagName('head')[0].appendChild(_0xj);}}if (document.readyState !== 'loading') {handler();} else if (window.addEventListener) {document.addEventListener('DOMContentLoaded', handler);} else {var prev = document.onreadystatechange || function () {};document.onreadystatechange = function (e) {prev(e);if (document.readyState !== 'loading') {document.onreadystatechange = prev;handler();}};}})();</script></body>
</html>
xbdmHQ commented 1 year ago

Proxy server to bypass Cloudflare protection https://github.com/FlareSolverr/FlareSolverr

EsmailELBoBDev2 commented 1 year ago

Hi @rramiachraf, Is there a way to use proxies with it maybe http proxy or socks?

Hi @xbdmHQ, can you help me with it? I'm little confused about how to integrate it with dumb?