Custom URL Block Page

Reply
L2 Linker

Custom URL Block Page

Hello Techies,

I am in process to implement custom URL block page in addition to default block page. In need to add below additional things in my custom URL block page

1. my company logo : Looking assistance to achieve

2. whenever there is block URL message it should show mail to list -- Achieved please find full HTML code as below

3. But when we  click on mail to it will pop mail box and allow you to send message. But does not contain block URL, Category, IP address of user what we see on default URL block page -- Looking assistance to achieve this one as i am not familiar with HTML mode. Hence when you click on mail to it's body contain Block URL, Category, IP address etc.

4. Please find full HTML code as below what i have used. Please assist me what HTML code modification i have to do to achieve point 1 & 3.

Your quick response is highly appreciated.

Thanks in advance

<html>

<head>

<title>Web Page Blocked</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

<style>

#content{border:3px solid#aaa;background-color:#fff;margin:40;padding:40;font-family:Tahoma,Helvetica,Arial,sans-serif;font-size:12px;}

  h1{font-size:20px;font-weight:bold;color:#196390;}

  b{font-weight:bold;color:#196390;}

</style>

</head>

<body bgcolor="#e7e8e9">

<div id="content">

<h1>Web Page Blocked</h1>

<p>Access to the web page you were trying to visit has been blocked in accordance with company policy. Please contact your system administrator if you believe this is in error.</p>

<p><b>User:</b> <user/> </p>

<p><b>URL:</b> <url/> </p>

<p><b>Category:</b> <category/> </p>

</div>

</td></tr>

<tr><td></td><td>

<form method="post" action="http://example.com/tticket.cgi">

<a href="mailto:support@xyg.com?subject=subject&cc=x.y@xyg.com">mail link</a>

<p>If you believe this site has been inappropriately blocked, use the form below to submit for review.</p>

<p><b>Comment: </b><br>

<textarea cols="50" rows="4" name="comments"></textarea><br>

<input type=hidden name="url" value="<url/>">

<input type=hidden name="user" value="<user/>">

<input type=hidden name="category" value="<category/>">

<input type=submit value="Submit"></p>

</form>

</td></tr>

</table>

</body>

</html>

Highlighted
bat
L5 Sessionator

Re: Custom URL Block Page

Hi GOC,

I have tested the below html code to achieve points 1 and 3 and it works fine. I have provided two options to embed your company logo in this. Comments are added in the code for better understanding:

<html>

<head>

<title>Web Page Blocked</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

<style>

#content{border:3px solid#aaa;background-color:#fff;margin:40;padding:40;font-family:Tahoma,Helvetica,Arial,sans-serif;font-size:12px;}

  h1{font-size:20px;font-weight:bold;color:#196390;}

  b{font-weight:bold;color:#196390;}

</style>

</head>

<body bgcolor="#e7e8e9">

<div id="content">

<!--Add company logo using the below img tag if the image is located on a web server-->

<img src="http://cdn.slidesharecdn.com/profile-photo-Palo_Alto_Networks-96x96.jpg?1382722588"/>

<!--You can also convert the image to base64 string using any converter available on internet so that the image is embedded in the code itself-->

<img alt="" src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCABgAGADASIAAhEBAxEB/8QAHgABAAAHAQEBAAAAAAAAAAAACQABAgYHCAoDBAX/xABNEAABAgQDBQQDDAYFDQAAAAABAgMEBQYRAAcICRIhMWEKE0FRFCKBFhkaIzJTcZGVs9LTFTNCcnaCJDhiscEmNkNERlZ0dYWSobLR/8QAGwEAAgIDAQAAAAAAAAAAAAAABQYABAIDBwH/xAA3EQABAwMBBAcGBAcAAAAAAAABAgMEAAURBhIWIUEUMVJxgZGhByM0YdHwFSRywSIyM0JRsfH/2gAMAwEAAhEDEQA/AH1WvdF7CwxijUfrdyz0mwiFVzVEDKYh5O8zBpJei3h4FLSbqsfM2HXHjrd1LM6SNNVUVw60h+JlkP3cAyux9IilndaTbxAJ3iPJJxz25jZjz3N+vJjVFUTKIm0+nDynoiKfXvkkm+6m/wAlA5BI4ADByy2bphK1nCR5k0s36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ITYo6cIV9KzQKXgkg7jkwiClX02WMTemKBwSam5kvHFQ86FjThpxqrVhmhBUlR8E7FxsasCIid09xLmuG866vkkJHG3Mm2OhzTjknLdOmSNM0TKbKgqdgUQqV2t3quKlr6by1KVbwvj0yi0+UbkLTglNG05K6dgQBvIg2QhTvVa+Kl/zE4vFtsNJsOWFe8Xdc1Y4YSKbrFYkQEkk7SjX/9k=" />

<h1>Web Page Blocked</h1>

<p>Access to the web page you were trying to visit has been blocked in accordance with company policy. Please contact your system administrator if you believe this is in error.</p>

<p><b>User:</b> <user/> </p>

<p><b>URL:</b> <url/> </p>

<p><b>Category:</b> <category/> </p>

</div>

</td></tr>

<tr><td></td><td>

<form method="post" action="http://example.com/tticket.cgi">

<!--I have added the code to add the required information in body %0D%0A is for newline and %20 is for space-->

<a href="mailto:support@xyg.com?subject=subject&cc=x.y@xyg.com&body=User:%20<user/>%0D%0AURL:%20<url/>%0D%0ACategory:%20<category/>">mail link</a>

<p>If you believe this site has been inappropriately blocked, use the form below to submit for review.</p>

<p><b>Comment: </b><br>

<textarea cols="50" rows="4" name="comments"></textarea><br>

<input type=hidden name="url" value="<url/>">

<input type=hidden name="user" value="<user/>">

<input type=hidden name="category" value="<category/>">

<input type=submit value="Submit"></p>

</form>

</td></tr>

</table>

</body>

</html>

Let me know if you face any issues.

-Chetan

L2 Linker

Re: Custom URL Block Page

Bunch of thanks it worked.

Dipak

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!