maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Ad blocking (https://talk.maemo.org/showthread.php?t=14729)

iamthewalrus 2008-03-28 14:56

Re: Ad blocking
 
Is there a way to log/monitor which HTTP requests are directed to 127.0.0.1 because of the the hosts file, (short of installing apache)? Since I added this here to my hosts file I can't open youtube movies, either from Microb or the MyTube app. So I experimented a bit with tcpdump, but I haven't been able to see the complete http request. Probably probably because HTTP is one level up on the network stack.

ioan 2008-03-28 19:08

Re: Ad blocking
 
I use privoxy and I'm more than happy with it.

iamthewalrus 2008-03-28 20:53

Re: Ad blocking
 
Quote:

Originally Posted by ioan (Post 161589)
I use privoxy and I'm more than happy with it.

I used privoxy as well but it seems to eat up half the bandwidth, while the hosts/userContent.css method does not.

coffeedrinker 2008-03-29 00:23

Re: Ad blocking
 
You really have to be careful which adblock host file you use. I use the one from floppymoose because some I've used in the past blocked a lot more than just ads. If the one you are using isn't suitable, try a different host file.

iamthewalrus 2008-03-29 01:10

Re: Ad blocking
 
Quote:

Originally Posted by coffeedrinker (Post 161816)
You really have to be careful which adblock host file you use. I use the one from floppymoose because some I've used in the past blocked a lot more than just ads. If the one you are using isn't suitable, try a different host file.

Floppymoose only has an example userContent.css file, not a hosts file. Still I would prefer to test and tweak the hosts file myself, so my question remains how to log what has been blocked by it.

coffeedrinker 2008-03-29 03:31

Re: Ad blocking
 
Heh, yep, I got that wrong. I'm way over tired.

I use the same file you listed above:

http://everythingisnt.com/hosts.html

but I don't have seem to have trouble with it.

Redshift 2008-03-29 08:31

Re: Ad blocking
 
I feel really stupid for asking this question, but I tried saving the userContent.css file to a few places and then found it via xterm. However, it won't let me do the command "mv userContent.css /home/user/.microb/chrome". It gives me the error:
"mv: cannot rename 'userContent.css': No such file or directory." What's going on?

iamthewalrus 2008-03-29 08:53

Re: Ad blocking
 
Quote:

Originally Posted by Redshift (Post 161902)
I feel really stupid for asking this question, but I tried saving the userContent.css file to a few places and then found it via xterm. However, it won't let me do the command "mv userContent.css /home/user/.microb/chrome". It gives me the error:
"mv: cannot rename 'userContent.css': No such file or directory." What's going on?

Like the error message said there is no directory '/home/user/.microb/chrome'. You need to create the 'chrome' directory first. B.t.w. another gotcha is to make sure that userContent.css contains unix-style line endings , and it is readable by user 'user'.

Redshift 2008-03-29 09:10

Re: Ad blocking
 
Well, I had made the chrome directory before trying to move it. I also tried moving it to /, /home, those didn't work either, so I knew it wasn't something wrong with the target directory being invalid...

iamthewalrus 2008-03-29 09:18

Re: Ad blocking
 
Quote:

Originally Posted by Redshift (Post 161909)
Well, I had made the chrome directory before trying to move it. I also tried moving it to /, /home, those didn't work either, so I knew it wasn't something wrong with the target directory being invalid...

You forgot to put the filename at the end of the command:

mv userContent.css /home/user/.microb/chrome/userContent.css


All times are GMT. The time now is 11:15.

vBulletin® Version 3.8.8