smallhost Posted January 22, 2022 Share Posted January 22, 2022 (edited) Hello, SmallHost here! I created the error page https://smallhost.us.to/errorpage.php?code=ERROR_CODE_HERE. It's a pretty simple error page, the code is below... However, when I sat it up on the cPanel it throwed this error... <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Well, we have a small problem...</title> <center> <h1>Well, we have a small problem...</h1> <p>The server is throwing a <b><?php $blockUnallowedScripting1 = str_replace("<","",$_GET['code']); $blockUnallowedScripting2 = str_replace(">","",$blockUnallowedScripting1); $blockUnallowedScripting3 = str_replace(";","",$blockUnallowedScripting2); $blockUnallowedScripting4 = str_replace(".","",$blockUnallowedScripting3); echo $blockUnallowedScripting4; ?></b> error and you cannot connect to the page you're trying to. The link might have changed, never existed to begin with or there might just be a bug in the system. Contact SmallHost if this error persists.</p> <p>(c)2021-Present SmallHost. Powered by <a href="https://ifastnet.com/">iFastNet</a>. Subdomain from <a href="https://freedns.afraid.org/">FreeDNS</a>.</p> </center> The domain name entered https://smallhost.us.to/errorpage.php?code=400 for 400 status code appears to be invalid 2 The domain name entered https://smallhost.us.to/errorpage.php?code=401 for 401 status code appears to be invalid 3 The domain name entered https://smallhost.us.to/errorpage.php?code=403 for 403 status code appears to be invalid 5 The domain name entered https://smallhost.us.to/errorpage.php?code=404 for 404 status code appears to be invalid 7 The domain name entered https://smallhost.us.to/errorpage.php?code=503 for 503 status code appears to be invalid The URL exists and works perfectly fine on my end. Did I do something wrong on my end or should I make a ticket? Edited January 22, 2022 by smallhost Changed the code for security purposes in case anyone wants to use it Quote Link to comment Share on other sites More sharing options...
JaiktDev Posted January 22, 2022 Share Posted January 22, 2022 seems working to me without the whole url. Quote Link to comment Share on other sites More sharing options...
smallhost Posted January 22, 2022 Author Share Posted January 22, 2022 Just now, BastelPichi2 said: You mean MOFH or cPanel? The cPanel. It has an option to set up error pages. When I sat the URLs, it threw an error. Quote Link to comment Share on other sites More sharing options...
smallhost Posted January 22, 2022 Author Share Posted January 22, 2022 (edited) 11 minutes ago, BastelPichi2 said: Dont use the cPanel. use htaccess instead. Thanks for letting me know! I'll do some digging and set that up in the htaccess file. Edited January 22, 2022 by smallhost Quote Link to comment Share on other sites More sharing options...
smallhost Posted January 22, 2022 Author Share Posted January 22, 2022 8 minutes ago, BastelPichi2 said: ^^ (also htaccess not htdocs) Haha, thanks for pointing that out! Sometimes I confuse the htdocs folder with the htaccess file ? Quote Link to comment Share on other sites More sharing options...
smallhost Posted January 22, 2022 Author Share Posted January 22, 2022 2 minutes ago, BastelPichi2 said: Oh and btw: THAT'S NOT SUPPOSED TO DO THAT! I'll try adding a filter to the error code so it cant allow brackets. (Also, there's a little easter egg on all the error pages...let me know if you find it!) Quote Link to comment Share on other sites More sharing options...
smallhost Posted January 22, 2022 Author Share Posted January 22, 2022 46 minutes ago, BastelPichi2 said: You mean ? HOW DID YOU FIND IT THAT FAST? ? Try dragging some things around and see what happens. I think that if we should continue this convo we should do it via Discord...the issue I posted about seems to be resolved via the htaccess file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.