soveryapt Posted July 7, 2011 Report Posted July 7, 2011 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
soveryapt Posted July 7, 2011 Author Report Posted July 7, 2011 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 ..
beneal Posted July 8, 2011 Report Posted July 8, 2011 (edited) Here's ours if it's any use 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 July 8, 2011 by beneal 1
BatchFile Posted July 8, 2011 Report Posted July 8, 2011 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...
soveryapt Posted July 11, 2011 Author Report Posted July 11, 2011 Here's ours if it's any use [ATTACH=CONFIG]10682[/ATTACH] Thanks for that. See, if Westfield has simply said "it's PHP" then I could of done that .. lol ..
dezt Posted July 15, 2011 Report Posted July 15, 2011 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?
beneal Posted July 15, 2011 Report Posted July 15, 2011 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
dezt Posted July 15, 2011 Report Posted July 15, 2011 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
dezt Posted July 15, 2011 Report Posted July 15, 2011 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
dezt Posted July 18, 2011 Report Posted July 18, 2011 @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?
soveryapt Posted July 18, 2011 Author Report Posted July 18, 2011 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. 1
beneal Posted July 18, 2011 Report Posted July 18, 2011 It should work (as far as I know) and it works for me. I've put a copy of your block page (code as above) on our website if you want to see what your NED does with that? Norden High School & Sports College Web Filter If that shows values correctly then I'd guess it's something up with php on your server 1
dezt Posted July 18, 2011 Report Posted July 18, 2011 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.
dezt Posted July 18, 2011 Report Posted July 18, 2011 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.
soveryapt Posted July 18, 2011 Author Report Posted July 18, 2011 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?
dezt Posted July 18, 2011 Report Posted July 18, 2011 @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.
soveryapt Posted July 18, 2011 Author Report Posted July 18, 2011 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 .. 1
dezt Posted July 19, 2011 Report Posted July 19, 2011 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.
stuartp44 Posted August 2, 2011 Report Posted August 2, 2011 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now