Ad-blocking with DD-WRT

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3 ... 15, 16, 17, 18, 19  Next
Author Message
Exvitermini
DD-WRT User


Joined: 13 Feb 2008
Posts: 228

PostPosted: Wed Nov 05, 2008 3:06    Post subject: Reply with quote
ok sorry. it populated the dlhosts file. should all the ip addresses in the dlhosts file say 0.0.0.0? it doesnt seem to be blocking any ads tho. like when i login to my hotmail account, there is an ad on top banner and ads on the right side. they are still there.
Sponsor
uncle bob
DD-WRT User


Joined: 31 Aug 2008
Posts: 148

PostPosted: Wed Nov 05, 2008 3:12    Post subject: Reply with quote
try to flush dns
Exvitermini
DD-WRT User


Joined: 13 Feb 2008
Posts: 228

PostPosted: Wed Nov 05, 2008 3:33    Post subject: Reply with quote
the flush dns worked. Thanks so much Very Happy but now where there used to be ads, it displays a cannot display page. is ther a way to maybe display a blank page if it has to display someting?
famewolf
DD-WRT Novice


Joined: 01 Oct 2008
Posts: 31

PostPosted: Wed Nov 05, 2008 3:49    Post subject: Reply with quote
Exvitermini wrote:
the flush dns worked. Thanks so much Very Happy but now where there used to be ads, it displays a cannot display page. is ther a way to maybe display a blank page if it has to display someting?


As already explained..the whole purpose of moving the web server to port 8080 was so that you could point the ads to your router ip. You can't point to port 80 if it's already being used by the router. If you don't want the "can't display" errors use the full script I posted including the httpd lines and change rogue to your router's ip address. Details in the original post.
Exvitermini
DD-WRT User


Joined: 13 Feb 2008
Posts: 228

PostPosted: Wed Nov 05, 2008 4:14    Post subject: Reply with quote
oh sweet deal. thanks alot guys for all the help.
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Wed Nov 05, 2008 7:21    Post subject: Reply with quote
Why aren't you adding something to TRAC-entry I made to ask Brainslayer to have a webentry to change the port httpd is listening to?

Code:
http://svn.dd-wrt.com:8000/dd-wrt/ticket/684

or
Code:
http://svn.dd-wrt.com:8000/dd-wrt/ticket/711



Doing so, will make brainslayer know it is not only me wanting this feature.

I also have the IP 169.254.255.1, but because httpd is listening to all interfaces, it is taken as well.
I can remember that this IP has something to do with uPnP. I need to know more about this before I just use it for something else...

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
Exvitermini
DD-WRT User


Joined: 13 Feb 2008
Posts: 228

PostPosted: Wed Nov 05, 2008 16:09    Post subject: Reply with quote
ya sure thing. i'll add someting on TRAC.

k so i added a TRAC ticket. is this along the rite lines? http://svn.dd-wrt.com:8000/dd-wrt/ticket/715

but for now i have another question. So now that i have webGUI on port 8080 i cannot login to my remote web GUI. when i type my DNS and the port 8080, it shows a blank page. how do i get access to my remote webGUI again?
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Wed Nov 05, 2008 17:38    Post subject: Reply with quote
You will have to create a pageforward to either 127.0.0.1 or your LAN ip.

remote-access 8888 TCP 192.168.1.1 8080

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
Exvitermini
DD-WRT User


Joined: 13 Feb 2008
Posts: 228

PostPosted: Wed Nov 05, 2008 18:32    Post subject: Reply with quote
awesome. thanks a lot Very Happy

Last edited by Exvitermini on Wed Nov 12, 2008 18:11; edited 1 time in total
goonx126
DD-WRT User


Joined: 13 Feb 2008
Posts: 59

PostPosted: Sat Nov 08, 2008 5:43    Post subject: Reply with quote
Thanks for the script and work.

The only problem i have is that every so often, the blocked add would cause the "login" window to popup. Is there something wrong with my settings?
famewolf
DD-WRT Novice


Joined: 01 Oct 2008
Posts: 31

PostPosted: Sat Nov 08, 2008 5:55    Post subject: Reply with quote
goonx126 wrote:
Thanks for the script and work.

The only problem i have is that every so often, the blocked add would cause the "login" window to popup. Is there something wrong with my settings?


Are you using session only cookies? You may need to make sure you bypass any proxies and allow cookies for the ip address of the router.
goonx126
DD-WRT User


Joined: 13 Feb 2008
Posts: 59

PostPosted: Sat Nov 08, 2008 19:57    Post subject: Reply with quote
Can you post instructions on those steps? Thanks
uncle bob
DD-WRT User


Joined: 31 Aug 2008
Posts: 148

PostPosted: Sat Nov 08, 2008 21:12    Post subject: Reply with quote
you can see login problem visiting www.macmall.com

Would you also modify script so it generates that empty 1x1 .gif image to feed browser by router webserver ?
because right now on some sites there is "cannot open page" 400 HTTP error or that ugly empty picture with red X shows up in IE7
frater
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 2777

PostPosted: Wed Nov 12, 2008 11:27    Post subject: Reply with quote
uncle bob wrote:
you can see login problem visiting www.macmall.com

Would you also modify script so it generates that empty 1x1 .gif image to feed browser by router webserver ?
because right now on some sites there is "cannot open page" 400 HTTP error or that ugly empty picture with red X shows up in IE7


That's not something that can be solved in the script. The whole idea of this 'trick' is using DNS to 'tell' the client-machines another IP than its real Internet-address. Some people call it blocking, but this is NOT what is happening.

Your web-browser will not go to the webserver of the add-provider, but to one of your own choice (the rogue IP). In my case it is 192.168.10.5

You will need a server listening on port 80 to do that. It is possible to use the webserver on your DD-WRT to do this, but it is already running your management interface. You can't change this port in the management interface. I already placed a feature-request in the TRAC-interface. If you want this, you should place such a request as well: http://svn.dd-wrt.com:8000/dd-wrt/ticket/715

All this can be done manually, by stopping the http-server on your linksys and starting it again on another port. Nothing really wrong with that, but could cause problems in other areas....

_________________
Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge

DD-WRT v24-sp2 vpn (c) 2010 NewMedia-NET GmbH
Release: 12/16/10 (SVN revision: 15758M)
Exvitermini
DD-WRT User


Joined: 13 Feb 2008
Posts: 228

PostPosted: Wed Nov 12, 2008 18:14    Post subject: Reply with quote
ya i've been having this issue as well. the router login keeps poping up. I couldnt figure out why this was happening but someone else did lol. I'll have to check the cookie settings when i get home. thanks for that.
_________________
> Linksys WRT610N v2 /w DD-WRT v24-sp2 (12/20/11) big (SVN revision 18024)
> Linksys WRT54GL v1.1 /w DD-WRT v24-sp2 (08/23/09) std (SVN revision 12714M VINT Eko) [Retired]
> Linksys WRT54G v6 /w DD-WRT v24-sp2 (07/22/09) micro (SVN revision 12548M NEWD Eko) [Retired]
Goto page Previous  1, 2, 3 ... 15, 16, 17, 18, 19  Next Display posts from previous:    Page 16 of 19
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum