PEO Posted November 6, 2008 Posted November 6, 2008 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 .... banned google and everything else. we use ngfl cachepilot here.. any ideas? cheers kev
tom_newton Posted November 6, 2008 Posted November 6, 2008 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. 1
PEO Posted November 6, 2008 Author Posted November 6, 2008 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 so should i put that in my cachepilot and see what happens?
tom_newton Posted November 6, 2008 Posted November 6, 2008 Give it a try... and then buy Friedl's "mastering regular expressions" - it's ace! OK... maybe I like regex too much 1
PEO Posted November 6, 2008 Author Posted November 6, 2008 tried that but it didnt work unfortunately.. desperate for a solution anyone else with any further ideas to what tom has said?
tom_newton Posted November 6, 2008 Posted November 6, 2008 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? 1
User3204 Posted November 6, 2008 Posted November 6, 2008 Could try the simpler, but more long winded versions.. [0-2][0-9][0-9]\..+ [0-2][0-9]\..+ [0-2]\..+ Wake-up ! 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]\..+ 2
tom_newton Posted November 6, 2008 Posted November 6, 2008 More coffee, less cut/paste needed. Thanks
tomscaper Posted November 6, 2008 Posted November 6, 2008 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.
ChrisH Posted November 6, 2008 Posted November 6, 2008 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!
tom_newton Posted November 6, 2008 Posted November 6, 2008 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.
PEO Posted November 6, 2008 Author Posted November 6, 2008 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
phreak Posted November 6, 2008 Posted November 6, 2008 I would suggest taking a look at Equiinets website. Might have some useful info on setting up the black and white lists. Heres one I found on there that might look like it has some useful info on it regarding cachepilot regex. http://smartstore.equiinet.net/articles/dodownload.asp?a=smartstore.equiinet.net.9.10.2008.17.3.56.pdf&i=50492
ChrisH Posted November 21, 2008 Posted November 21, 2008 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
tom_newton Posted November 22, 2008 Posted November 22, 2008 Sorry - forgot about ISBN.. thankfully you caught me at home today. Copy I have is 1-56592-257-3 and is 342 pages, paperback.
ChrisH Posted November 22, 2008 Posted November 22, 2008 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.
tom_newton Posted November 23, 2008 Posted November 23, 2008 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
ChrisH Posted November 23, 2008 Posted November 23, 2008 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 .
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