Jump to content
[MUST READ] Forum Rules ×

Bug with cPanel Error Page Option


smallhost

Recommended Posts

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 by smallhost
Changed the code for security purposes in case anyone wants to use it
Link to comment
Share on other sites

46 minutes ago, BastelPichi2 said:

You mean

grafik.png

?

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...