Adblock to privoxy script and host file compiler script

Miscellaneous tools
Post Reply
Message
Author
jockjunior
Posts: 150
Joined: Tue 29 Jan 2008, 21:11
Location: Lancashire,U.K.
Contact:

Adblock to privoxy script and host file compiler script

#1 Post by jockjunior »

http://www.pingus-perirtatus.webspace.v ... privoxy.sh

Script to convert adblock filters to privoxy action files

http://www.pingus-periratus.webspace.vi ... ethosts.sh

Script to combine 3 host files into 1 and remove duplicate entries. Host file sources are set in script.

These are not my scripts I found them on the net. I have only modified the gethost script to match the directory structure in Puppy.

Run them both in a terminal eg ./pupgethosts
no need to do anything else with the Adblock script but the gethosts needs you to copy the finished file to /etc/hosts. Instructions onscreen.

Right click and save as to download

tytower

#2 Post by tytower »

Hey you seem to know what you are doing with privoxy
Can you explain briefly what it is used for and where I can get it for puppy?

jockjunior
Posts: 150
Joined: Tue 29 Jan 2008, 21:11
Location: Lancashire,U.K.
Contact:

#3 Post by jockjunior »

http://www.pingus-periratus.webspace.vi ... 86-1cf.txz

This is the one I use on Slacko it may work on other puppies. see this thread

http://www.murga-linux.com/puppy/viewtopic.php?t=77035

for installation help


Privoxy is a http proxy with custom filter for ads and other annoyances. They are called action files. It comes with default settings for blocking stuff. You can add to it by customising the User File and adding further action files.

Set your browser proxy to localhost and port 8118

tytower

#4 Post by tytower »

Looking to see if this is of any use to me I D/L and installed , linked root to configfile and set the proxy in preferences as advised and started the service to get the following

Code: Select all

  
Proxy Server Refused Connection        
       The connection was refused when attempting to contact the proxy server you have configured. Please check your proxy settings and try again.    
        The browser is configured to use a proxy server, but the proxy refused a connection.Is the browser's proxy configuration correct? Check the settings and try again.Does the proxy service allow connections from this network?Still having trouble? Consult your network administrator or Internet provider for assistance.
Just offhand is there anything else I must do to get this running. Is my firewall likely to be blocking that port?

jockjunior
Posts: 150
Joined: Tue 29 Jan 2008, 21:11
Location: Lancashire,U.K.
Contact:

#5 Post by jockjunior »

Copy config file from /etc/privoxy to /root

open config file you just copied and alter 'enable web editor' option from 0 to 1 and resave file this allows you to alter settings in PRIVOXY using web browser


Make link in Startup folder to /usr/sbin/privoxy

In Firefox Network settings for http and https

localhost 8118

reboot computer

to use web editor to view and edit settings go

www.privoxy.org
then
quickstart after installation link
then
configuration section
edit view settings link

that's all I did

tytower

#6 Post by tytower »

Hmm something not right here then
Done all that and privoxy running OK but refusing connection from browser. Didnt find "enable web editor" in the config file see screenshot attached

Mine is probably a later version , do you mean "enable-remote-toggle 0" ?
version 3.0.19
puppy precise 5.4.2
Attachments
config.jpg
(56.43 KiB) Downloaded 428 times

jockjunior
Posts: 150
Joined: Tue 29 Jan 2008, 21:11
Location: Lancashire,U.K.
Contact:

#7 Post by jockjunior »

4.5. enable-edit-actions
# =========================
#
# Specifies:
#
# Whether or not the web-based actions file editor may be used
#
# Type of value:
#
# 0 or 1
#
# Default value:
#
# 0
#
# Effect if unset:
#
# The web-based actions file editor is disabled.



What browser u using?

Did you do full reboot?

Chromium users

edit /etc/rc.d/rc.local to set system proxy

#this file called from rc.sysinit
#you can edit this file
#When firewall is installed, will append lines to this file...

if [ -x /etc/rc.d/rc.firewall ]; then
/etc/rc.d/rc.firewall start
fi
*
export http_proxy="http://localhost:8118"
export HTTP_PROXY="http://localhost:8118"
export https_proxy="http://localhost:8118"
export HTTPS_PROXY="http://localhost:8118"



Opera users

set proxy in browser

Preferences- Advanced- Network -Set proxy servers

tytower

#8 Post by tytower »

I'm using Seamonkey Browser and I found and tried the enable-edit-actions without success previously . I have rebooted many times since adding the start link

I tried adding the lines above to /etc/rc.d/rc.local to set system proxy

Code: Select all

export http_proxy="http://localhost:8118"
export HTTP_PROXY="http://localhost:8118"
export https_proxy="http://localhost:8118"
export HTTPS_PROXY="http://localhost:8118"
and in the browser I have set it to use the system proxy.. Pages continue to be loaded now but

When I go to privoxy.org/config it tells me privoxy is not being used
I'm starting to think that maybe something is different with localhost in Puppy Precise 5.4.2

Post Reply