Jump to content

Recommended Posts

Posted

kids are entering ip address for websites rather than using dns names for blocked websites.

 

I tried *.*.*.* in the block list but this was to aggresive :doh:.... banned google and everything else.

 

we use ngfl cachepilot here.. any ideas?

 

cheers

 

kev

Posted

use (\d{1,3}\.){3}(\d{1,3}) as a regex... yours will match pretty much everything

 

That uses some fairly advanced regex features mind, so dunno if cachepilot supports em.

  • Thanks 1
Posted
use (\d{1,3}\.){3}(\d{1,3}) as a regex... yours will match pretty much everything

 

That uses some fairly advanced regex features mind, so dunno if cachepilot supports em.

 

gosh :eek: so should i put that in my cachepilot and see what happens?

Posted

tried that but it didnt work unfortunately..

 

desperate for a solution anyone else with any further ideas to what tom has said?

Posted

Could try the simpler, but more long winded versions..

[0-2][0-9][0-9]\..+

[0-2][0-9]\..+

[0-2]\..+

 

which blocks anything which starts with 3 numbers, 2 numbers, 1 number & a dot

 

Is there no big switch "block all requests to IPs"? or an option to do reverse lookups?

  • Thanks 1
Posted
Could try the simpler, but more long winded versions..

[0-2][0-9][0-9]\..+

[0-2][0-9]\..+

[0-2]\..+

Wake-up ! :D

 

That'll only block numbers starting with 0, 1, or 2, so 99.x.y.z would get through...

 

Instead you'll need:

[0-2][0-9][0-9]\..+

[0-9][0-9]\..+

[0-9]\..+

  • Thanks 2
Posted
I dont think cachepilot works in that way, luckily here we have not had any issues with kids realising going via the ip address, surely tho shouldn't smartfilter also register the ip address to and block that as well. Try getting in touch with someone from easynet, do you have any contacts for them, think my boss may have someone's number. Have a word with them.
Posted
Give it a try... and then buy Friedl's "mastering regular expressions" - it's ace!

 

I was tempted to order that until it came up at £31.99! That MS Press price territory!:mumum:

Posted

number for easynet is infront of me, will give them a ring tomorrow now... got a million other things to do before I go home tonight... Yeay

 

Thanks for trying to help Tom... much appreciated, and I will be looking at this book when you post the ISBN :)

  • 3 weeks later...
Posted
Mastering Regular Expressions (Nutshell Handbook): Jeffrey E.F. Friedl: Amazon.co.uk: Books

 

This edition claims to be "nutshell" but has 300-odd pages (boy, I wish my nuts were that big ;)) - and is available for 3 quid used.

 

Unfortunately my copy is at home, but if I remember I will check the ISBN number when I get back tonight.

 

I have just taken delivery, £4.82 delivered from the US! It is in near new condition. This is the second book I have got from a supplier through Amazon. The other one I paid £12 for rather than £30 as it stated it had a large crease on the cover and pages. I took delivery and it's immaculate! Definitely some bargains to be had :) This will go nicely with my O'Reilly Perl book :)

Posted
Sorry - forgot about ISBN.. thankfully you caught me at home today.

Copy I have is 1-56592-257-3 and is 342 pages, paperback.

 

Same as mine :) Just on chapter 2 and waiting for my learning Perl book, I already have the programming one for more advanced stuff which is too hard going for me at the mo.

Posted
ChrisH: Feel free to bother me with Perl questions - if i don't know the answers, i'll know a man who does... speaking of which, the perl man pages are great - perlfaq4 being a personal fave :)
Posted
Thanks Tom. I have dabbled before and you helped me out when I was writing a nagios plugin to query Xerox printers a few years ago. The way things are going though, I think Perl is going to become an essential for me in these mixed environments we run these day :) .

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



  • 33 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...