Jump to content

Recommended Posts

Posted

Afternoon all

 

I've finally got round to integrating our NED Box into the AD and I want to use a custom block page (with the school logo, etc, etc).

 

The only thing that's stumping me here is what format am I supposed to be writing the page in? As no where does it say "use PHP Variables" or whatever type of page it throws up, so I'm just wondering if anyone here has a custom block page that I could take a look at or could point me in the right direction for?

 

Ta

Andy T :)

Posted
Meh .. just had a called from Westfield who basically talked me through the page in the dashboard but didn't really give an answer as such .. but they are going to see if they can find one or not ..
Posted (edited)

Here's ours if it's any use

 

os_block.jpg

 

Ormskirk School Web Filter

 <br />
<br />
body {<br />
    margin: 0;<br />
    padding: 0;<br />
    font-family: verdana;<br />
    width: 100%;<br />
    font-size: 12px; <br />
    font-color: #6599CB<br />
}<br />



http://orm-sr-002.ormskirk.internal/logo.jpg
This page is blocked

The url  has been blocked by our internal web filter.

If you believe you should be allowed to access this site, please contact the ICT support team.


Your Username: 

Your Group: 

Filter Policy: 

Your IP address: 



Edited by beneal
  • Thanks 1
Posted
We've added the Rank gong sound to our block page to hopefully attract the attention of the teacher (on ISA though not CLEO NED) also a link to a moodle forum where the pupils can discuss why a page that is blocked should be unblocked...
Posted

I've got a few questions about this custom block page, at the moment i've got a iis7 webserver setup with PHP5 installed and then i've put the block page in the inetpub directory and then I set it on the NED. When I try to browse to a blocked website it's not pulling up the data it would get from the NED, like the username and the filter policy.

 

As a starting place I tried to copy the code beneal has posted above and then tried that as the block page, but it still doesn't bring up the username information like the screenshot does above.

 

Am I missing something simple?

Posted

The file takes the variables from the URL the NED uses to display the block page (which doesn't actually show up these days, replaced with the address of the blocked site). If you want to use my code you can test it using the URL of your file with the variables appended, e.g.

 

http://server/blockpage.php?url=www.awebsite.com&clientuser=username&group=Students&list=Games&ip=1.2.3.4

Posted

I must be doing something wrong, even when I copy the code above from your page and create a new php page, then type in the link you provided, it still doesn't populate the block page.

 

I checked php was installed and it brought up all the relevant info when I set it up, so that should be working.

 

I'm creating the page in Dreamweaver using the code view, then saving as a .php page, then putting it into my inetpub\wwwroot folder and trying to use that for the block page

Posted

Here's the code i'm trying to use for our block page at the moment.

 


Norden High School & Sports College Web Filter

 <br />
<br />
body {<br />
    margin: 0;<br />
    padding: 0;<br />
    font-family: verdana;<br />
    width: 100%;<br />
    font-size: 12px; <br />
    font-color: #6599CB<br />
}<br />



http://norden-web/Logo.png
This page is blocked

The url  has been blocked by our internal web filter.

If you believe you should be allowed to access this site, please contact the ICT support team.


Your Username: 

Your Group: 

Filter Policy: 

 



 

As you can see it's the same as yours

Posted

@beneal If I just copied your code into a text file and saved it as a .php file, should it bring up the data required like username etc? I know the standard CLEO block page is working, but our custom one doesn't seem to be.

 

Have I missed something on the webserver, so far it's just got iis7 and PHP 5 installed on it, do I need something else on there?

Posted

try adding at the bottom of your page (or creating a new page with just this in) the line:

 

 phpinfo(); ?>

 

This should list the PHP Settings on your server assuming PHP is configured properly. If the information doesn't show then there is an error with your PHP configuration.

 

In fact, you're probably better just simply creating a textfile called phpinfo.php and putting just that line in it and trying to access that.

  • Thanks 1
Posted

I tried that and got a full page of php info, so it looks like it's working ok. This is a new install of iis and php, there is nothing else on the server yet. I've been looking around the web about php files and seen a tutorial that has the variables in double quotes (") rather than single quotes ('), could this be the issue?

 

I'm really getting annoyed with this, I thought it would be a simple job, so far i've been looking at it for about 4 days.

Posted

Thanks beneal, the page worked when I put it in hosted on your server, so there must be an issue with php on our server. I'll look at the server and try sorting it out.

 

Thanks again for all your help.

Posted

Give @beneal 's suggestion a try and see if that works. Single vs Double quotes, it's one of those long debates, but they both function the same pretty much, just some people prefer single quotes some double.

 

I take it you are getting the webpage, just not the variables?

Posted

@aptproductions The page came up fine, so it does look like our php isn't working correctly. I'm going to try re-installing it from scratch, slowly, to see if anything was missed when I installed it the first time.

 

I do get the page, just not the variables when hosted on my web server.

Posted

Try installing WAMP or something (if this is the only thing you're planning on using it for).

 

I found that the PHP 5 for Windows Server (assuming that's what you're installing it on) didn't always function correctly so I just took an old box, shoved Ubuntu Server on it and installed a Webserver on that for all my internal stuff ..

  • Thanks 1
Posted

Finally figured it out. Turns out my nice new install didn't like

for the php code. As soon as I changed it to

it all started working.

 

Thanks for all your help.

  • 2 weeks later...
Posted
I really do not know why you would use the NED box, just go an buy ISA server or Forefront Threat Management Gateway. You get miles better reporting and AD intergration and better forwards compatability as with the NED box it is always behind advances in software e.g Windows Server 2008 R2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • 46 When would you like EduGeek EDIT 2025 to be held?

    1. 1. Select a time period you can attend


      • I can make it in June\July
      • I can make it in August\Sept
      • Other time period. Comment below
      • Either time

×
×
  • Create New...