Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> 404 Error Page, Learn to make a really cool one
GeT HeXD
post Oct 3 2005, 04:47 AM
Post #1


Newbie [Level 1]
*

Group: Members
Posts: 17
Joined: 26-September 05
Member No.: 12,278



First, you should know a little bit of basic PHP. It is relatively simple.

CODE
<?php
echo $_SERVER['HTTP_USER_AGENT'];

echo $_SERVER['REMOTE_ADDR'];

?>


echo $_SERVER['HTTP_USER_AGENT']; - Displays users browser.
echo $_SERVER['REMOTE_ADDR']; - Displays users IP Address.

If you have a PHP host, put in
CODE
<?php
phpinfo();
?>

and in one of the sections, there are a whole bunch like these. Like display where user came from etc. Experiment...and you can create something like

Hey! What are you trying to do, buddy?! I know you are using Microsoft Internet Explorer! Your IP is 192.168.0.0! So don't keep trying or we will hunt you down and hack you!

for a 404 Error Page. Oh boy!

-HeXatorials
Go to the top of the page
 
+Quote Post
OpaQue
post Oct 3 2005, 08:46 AM
Post #2


Administrator
Group Icon

Group: Admin
Posts: 1,479
Joined: 11-June 04
From: Somewhere in Time & Space.
Member No.: 1



Additional Information on Configuring the .htaccess so as to define the custom error pages. You can either do by the following way or login to your Cpanel and use the custom error page tool to configure the .htaccess file automatically.

QUOTE
For sites hosted on the Linux cluster, you must create a .htaccess file and upload it to your www directory. You will also need to write the custom error pages and upload them to your site.

The .htaccess file is used to override a default setting within the configuration of Apache. The syntax for the .htaccess file is as follows:

ErrorDocument errorcode path-to-page

A working example:
ErrorDocument 404 /custom/404.php


Go to the top of the page
 
+Quote Post
GeT HeXD
post Oct 3 2005, 07:18 PM
Post #3


Newbie [Level 1]
*

Group: Members
Posts: 17
Joined: 26-September 05
Member No.: 12,278



You guys' 404 Error Page is so cool. I like watching it.
Go to the top of the page
 
+Quote Post
DreamCore
post Oct 3 2005, 08:19 PM
Post #4


Premium Member
********

Group: Members
Posts: 199
Joined: 29-September 05
Member No.: 12,363



QUOTE(GeT HeXD @ Oct 3 2005, 08:18 PM)
You guys' 404 Error Page is so cool. I like watching it.
*


Lol heh... whats is it that is so fun??
Or du you like to see the page that you have made.
Go to the top of the page
 
+Quote Post
GeT HeXD
post Oct 4 2005, 07:31 PM
Post #5


Newbie [Level 1]
*

Group: Members
Posts: 17
Joined: 26-September 05
Member No.: 12,278



I like what it types up it is just entertaining. It's all like I'm so depressed... lol
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. ---> Ftp Error Codes What They Mean <---(5)
  2. Psp Error- Tut On How To Fix(31)


 



- Lo-Fi Version Time is now: 13th October 2008 - 01:52 PM