HTML Code ClinicDo you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the HTML Code Clinic section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
I have a Draytrek 2820 ADSL Firewall Router, with Web content filtering. The block page which it provides to the users is very simple and looks horrible. On the router itself you are able to edit the block page, however it is very limited and can only enter 255 char (very annoying).
Our MD wants to fully customise this page so it has the same format etc as our company web site.
What I have done so far is put an HTML redirect to a standard HTML page sat on our web server using the following code below.
There are some varibles used in the standard router block page which I need to carry across onto the customised HTML page sat on our server and I don't know how to do this.
The variables which are used are shown below:
%SIP%, source IP Address
%DIP%, destination IP Address
%URL%, the target URL
%CL%, category of the web page.
%RNAME%, router name
I have included a copy of the HTML code which is from the router's block page.
Code:
<html>
<head>
<title>gambling is block by web content filter.[Powered by DrayTek]</title>
</head>
<body>
<center>
<br>
<br>
<br>
<p>The requested Web page <br> from %SIP%
<br>to %URL%
<br>that is categorized with %CL%
<br>has been blocked by %RNAME% Web Content Filter.
<p>Please contact your system administrator for further information.
</center>
</body>
<BR>
</html>