404 error code html

Samantha9

Junior Member
Joined
Nov 14, 2017
Messages
119
Reaction score
14
hey guys i need 404 error code html for my new blog i found codes in google but i need trusted sites for this codes can you recommended me a trusted site contains all html codes?
thank you
 
hey guys i need 404 error code html for my new blog i found codes in google but i need trusted sites for this codes can you recommended me a trusted site contains all html codes?
thank you

You mean a 404 Error Page to show when someone accessing a non-present URL?

It's just simple htm
 
You mean a 404 Error Page to show when someone accessing a non-present URL?

It's just simple htm
yes i mean the html code for 404 error page in my new blog
i just found this code

Code:
<HTML>

<HEAD>

<title> 404 Error Page</title>

</HEAD>

<BODY>

<p align="center">

<h1>Error 404</h1><br>Page Not Found

<p>

<?php

$ip = getenv ("REMOTE_ADDR");

$requri = getenv ("REQUEST_URI");

$servname = getenv ("SERVER_NAME");

$combine = $ip . " tried to load " . $servname . $requri ;

$httpref = getenv ("HTTP_REFERER");

$httpagent = getenv ("HTTP_USER_AGENT");

$today = date("D M j Y g:i:s a T");

$note = "You are in a wrong page!" ;

$message = "$today \n

<br>

$combine <br> \n

User Agent = $httpagent \n

<h2> $note </h2>\n

<br> $httpref ";

$message2 = "$today \n

$combine \n

User Agent = $httpagent \n

$note \n

$httpref ";

$to = "[email protected]";

$subject = "yourdomain Error Page";

$from = "From: [email protected]\r\n";

mail($to, $subject, $message2, $from);

echo $message;

?>

Visit our Home Page yourdomain.com

</BODY></HTML>
is that working &trusted code?
thank you veboo:)
 
It seems fine. It includes an option where your site visitors' (404 error page) ips are collected as I can see. And it provides the visitor to send email to your email. You have to edit in your preferences
 
Back
Top