Re: [squid-users] squid3.4 - MySQL, PHP script - block websites

2015-11-15 Thread Jens Kallup
Hello, Now, I use the follow script. But, it ends in endless search - web browser site search. #!/usr/bin/python import sys import time def grant (): sys.stdout.write( 'OK\n' ) def deny (): sys.stdout.write( 'ERR\n' ) while True: line = sys.stdin.readline() if

Re: [squid-users] squid3.4 - MySQL, PHP script - block websites

2015-11-15 Thread Antony Stone
On Sunday 15 November 2015 at 15:53:56, Jens Kallup wrote: > Hello, > > Now, I use the follow script. > But, it ends in endless search - web browser site search. > > #!/usr/bin/python > > import sys > import time > > def grant (): >sys.stdout.write( 'OK\n' ) > > def deny (): >

Re: [squid-users] squid3.4 - MySQL, PHP script - block websites

2015-11-15 Thread Eliezer Croitoru
Hey Jens, PHP failed long time ago to work nicely with squid. Do you think that SquidBlocker can fit your needs? You can understand what it is at: http://ngtech.co.il/squidblocker/ I think it might feet your needs just right. Python\perl\php will fit to a very small services while not utilizing

Re: [squid-users] squid3.4 - MySQL, PHP script - block websites

2015-11-15 Thread Luis Daniel Lucio Quiroz
I think it is better to translate this code to c. Contact me, having c will give you speed and memory savings. Le 13 nov. 2015 8:22 PM, "Jens Kallup" a écrit : > Hello, > > I have problems to block web sites listet in mysql database. > When i start the script below, it works,

Re: [squid-users] squid3.4 - MySQL, PHP script - block websites

2015-11-14 Thread Amos Jeffries
On 14/11/2015 2:20 p.m., Jens Kallup wrote: > Hello, > > I have problems to block web sites listet in mysql database. > When i start the script below, it works, but squid3.4 give me log output; > > 2015/11/14 01:27:40 kid1| helperHandleRead: unexpected read from > blockscript #Hlpr0, 3 bytes

[squid-users] squid3.4 - MySQL, PHP script - block websites

2015-11-13 Thread Jens Kallup
Hello, I have problems to block web sites listet in mysql database. When i start the script below, it works, but squid3.4 give me log output; 2015/11/14 01:27:40 kid1| helperHandleRead: unexpected read from blockscript #Hlpr0, 3 bytes 'OK how can i fix that problem ? Thanks in advice Jens