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
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 ():
>
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
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,
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
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