+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
CLEO Thread, CLEO NED - Custom Block Page in Regional Broadband Consortiums (RBC); Afternoon all I've finally got round to integrating our NED Box into the AD and I want to use a ...
  1. #1
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,402
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78

    CLEO NED - Custom Block Page

    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

  2. #2
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,402
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78
    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 ..

  3. #3
    beneal's Avatar
    Join Date
    Mar 2010
    Location
    Ormskirk
    Posts
    47
    Thank Post
    8
    Thanked 8 Times in 8 Posts
    Rep Power
    19
    Here's ours if it's any use

    os_block.jpg

    HTML Code:
    <html>
    <title>Ormskirk School Web Filter</title>
    
    <style type="text/css"> 
    
    body {
        margin: 0;
        padding: 0;
        font-family: verdana;
        width: 100%;
        font-size: 12px; 
        font-color: #6599CB
    }
    </style>
    
    <div align=center>
    <div style="width: 800px; margin-right: auto; margin-left: auto; border: 2px solid #000000"><img src=http://orm-sr-002.ormskirk.internal/logo.jpg>
    <h1 align=center>This page is blocked</h1>
    
    <div style="width: 600px">The url <font color=red><?echo $_GET['url'];?></font> has been blocked by our internal web filter.</p>
    
    If you believe you should be allowed to access this site, please contact the ICT support team.
    <hr>
    <p>Your Username: <?echo $_GET['clientuser'];?></p>
    <p>Your Group: <?echo $_GET['group'];?></p>
    <p>Filter Policy: <?echo $_GET['list'];?></p>
    <p>Your IP address: <?echo $_GET['ip'];?></p>
    <p /></div>
    </div></div>
    </html>
    Last edited by beneal; 8th July 2011 at 08:46 AM.

  4. Thanks to beneal from:

    soveryapt (11th July 2011)

  5. #4
    BatchFile's Avatar
    Join Date
    Aug 2007
    Location
    Cumbria
    Posts
    948
    Thank Post
    544
    Thanked 128 Times in 106 Posts
    Rep Power
    60
    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...

  6. #5
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,402
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78
    Quote Originally Posted by beneal View Post
    Here's ours if it's any use

    os_block.jpg
    Thanks for that. See, if Westfield has simply said "it's PHP" then I could of done that .. lol ..

  7. #6
    dezt's Avatar
    Join Date
    Dec 2005
    Location
    Lancs
    Posts
    1,026
    Thank Post
    157
    Thanked 58 Times in 46 Posts
    Rep Power
    29
    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?

  8. #7
    beneal's Avatar
    Join Date
    Mar 2010
    Location
    Ormskirk
    Posts
    47
    Thank Post
    8
    Thanked 8 Times in 8 Posts
    Rep Power
    19
    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.

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

  9. #8
    dezt's Avatar
    Join Date
    Dec 2005
    Location
    Lancs
    Posts
    1,026
    Thank Post
    157
    Thanked 58 Times in 46 Posts
    Rep Power
    29
    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

  10. #9
    dezt's Avatar
    Join Date
    Dec 2005
    Location
    Lancs
    Posts
    1,026
    Thank Post
    157
    Thanked 58 Times in 46 Posts
    Rep Power
    29
    Here's the code i'm trying to use for our block page at the moment.

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <title>Norden High School & Sports College Web Filter</title>
    
    <style type="text/css"> 
    
    body {
        margin: 0;
        padding: 0;
        font-family: verdana;
        width: 100%;
        font-size: 12px; 
        font-color: #6599CB
    }
    </style>
    
    <div align=center>
    <div style="width: 800px; margin-right: auto; margin-left: auto; border: 2px solid #000000"><img src=http://norden-web/Logo.png>
    <h1 align=center>This page is blocked</h1>
    
    <div style="width: 600px">The url <font color=red><?echo $_GET['url'];?></font> has been blocked by our internal web filter.</p>
    
    If you believe you should be allowed to access this site, please contact the ICT support team.
    <hr>
    <p>Your Username: <?echo $_GET['clientuser'];?></p>
    <p>Your Group: <?echo $_GET['group'];?></p>
    <p>Filter Policy: <?echo $_GET['list'];?></p>
    <p>&nbsp;</p>
    <p /></div>
    </div></div>
    </html>
    As you can see it's the same as yours

  11. #10
    dezt's Avatar
    Join Date
    Dec 2005
    Location
    Lancs
    Posts
    1,026
    Thank Post
    157
    Thanked 58 Times in 46 Posts
    Rep Power
    29
    @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?

  12. #11
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,402
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78
    try adding at the bottom of your page (or creating a new page with just this in) the line:

    Code:
    <? 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.

  13. Thanks to soveryapt from:

    dezt (18th July 2011)

  14. #12
    beneal's Avatar
    Join Date
    Mar 2010
    Location
    Ormskirk
    Posts
    47
    Thank Post
    8
    Thanked 8 Times in 8 Posts
    Rep Power
    19
    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

  15. Thanks to beneal from:

    dezt (18th July 2011)

  16. #13
    dezt's Avatar
    Join Date
    Dec 2005
    Location
    Lancs
    Posts
    1,026
    Thank Post
    157
    Thanked 58 Times in 46 Posts
    Rep Power
    29
    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.

  17. #14
    dezt's Avatar
    Join Date
    Dec 2005
    Location
    Lancs
    Posts
    1,026
    Thank Post
    157
    Thanked 58 Times in 46 Posts
    Rep Power
    29
    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.

  18. #15
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,402
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78
    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?

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Little bit of fun....website block page
    By jamesfed in forum Coding
    Replies: 3
    Last Post: 5th July 2011, 06:26 PM
  2. Cleo NED Box AD Integration
    By TomTomGo in forum CLEO
    Replies: 7
    Last Post: 3rd June 2010, 02:09 PM
  3. [CLOSED] Bug/Error: front page 'todays birthdays' block is wrong!
    By Ric_ in forum EduGeek.net Site Problems
    Replies: 3
    Last Post: 27th April 2008, 11:29 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •