Results 1 to 13 of 13
-
05-27-2011, 12:51 PM #1Junior Guru Wannabe
- Join Date
- Apr 2011
- Location
- Myrtle Beach, SC
- Posts
- 46
So how can you block certain ad servers/sites on Squid?
I know a lot of companies/schools etc. use squid to block out certain sites from being accessed by their users. I think actually that's one of the main reasons for installing squid for people to use your network to surf with.
I can't for the life of me even find a tutorial on blocking out a single ad-server or site with a basic squid config.
I am looking to buy a dedicated server with some company (haven't even looked yet) & setup squid. But on my home linux computer, I can't yet figure it out, so I won't get a box till I know it can be done.
Can anyone help point me in the right direction here? Lets say there are flash ads I want to block from mobi22.generic-adserver.cizom
How would I go about blocking mobi22.generic-adserver.cizom? Thanks ahead of time & if a hosting tech answers this question, I'll be impressed, & I will definitely consider your company to buy my dedicated box!
- Nerdy Jenn
-
05-27-2011, 01:07 PM #2Web Hosting Master
- Join Date
- Mar 2009
- Posts
- 3,816
Does it have to be squid? If it's just blocking certain hosts, why not use something lightweight like http://www.privoxy.org
-
05-27-2011, 04:36 PM #3Junior Guru Wannabe
- Join Date
- Apr 2011
- Location
- Myrtle Beach, SC
- Posts
- 46
yea it really needs to be squid right now because I can't afford to pay a tech to install new software right now (on top of a new server bill), however, thank you very much for that tip, I will definitely look into using that!
I just assumed squid was a pretty widely used software. I assumed most people on here had some experience with it...especially hosts & techs
-
05-27-2011, 04:39 PM #4Junior Guru Wannabe
- Join Date
- Apr 2011
- Location
- Myrtle Beach, SC
- Posts
- 46
Btw, does privoxy also handle https? In other words, If im using an ip on privoxy on my server & I log into a https:// server, will it handle that handshake, or will it revert to using my computers actual IP address? I.E. does it work as just a http proxy, or http/https/socks etc.
-
05-27-2011, 04:44 PM #5Web Hosting Master
- Join Date
- Mar 2009
- Posts
- 3,816
"Privoxy can only proxy HTTP and HTTPS traffic. It will not work with FTP or other protocols"
-
05-27-2011, 05:48 PM #6Junior Guru Wannabe
- Join Date
- Jul 2009
- Posts
- 56
Are you looking just for a way to block certain URLs from passing through the proxy (i.e. an ad site), or totally block a certain URL, or block all ads with something like AdZapper?
-
05-27-2011, 07:47 PM #7Junior Guru Wannabe
- Join Date
- Apr 2011
- Location
- Myrtle Beach, SC
- Posts
- 46
Actually I was just looking to block a few certain ad-servers which have become troublesome for our surfers. I'm not a big advocate of blocking ALL commercial endeavors. Otherwise how will sites stay up & make their revenue?
But if AdZapper has an ad-server list, that we could simply edit, then we'd probably be good to go! So does it? Im totally stoked now.
-
05-27-2011, 09:41 PM #8Web Hosting Master
- Join Date
- May 2006
- Location
- New Zealand
- Posts
- 6,933
Squid Wiki has most answers
acl Cooking1 url_regex cooking
acl Recipe1 url_regex recipe
acl myclients src 172.16.5.0/24
http_access deny Cooking1
http_access deny Recipe1
http_access allow myclients
http_access deny all
http://wiki.squid-cache.org/SquidFaq...CL_ban_list.3F██ | Hoopla Hosting -
██ | WordPress Web Hosting New Zealand - Reseller Hosting - cPanel - Zurmo Hosting - Softaculous - CloudFlare
-
10-04-2011, 11:12 AM #9Junior Guru Wannabe
- Join Date
- Apr 2011
- Location
- Myrtle Beach, SC
- Posts
- 46
-
10-04-2011, 01:01 PM #10Web Hosting Master
- Join Date
- Mar 2009
- Location
- Miami, Florida
- Posts
- 20,777
You could also nullroute the host in your hosts file /etc/hosts
Add
mobi22.generic-adserver.cizom 0.0.0.0
-
10-04-2011, 01:10 PM #11Web Hosting Master
- Join Date
- Mar 2008
- Posts
- 1,717
If you have a long list of domains you want to block, check out SquidGuard or ufdbguard, both of which I'm pretty sure are much faster than using Squid itself (they plug into squid and take some of the load off the cache IIRC).
I used to run the oldest commercial Mumble host.
-
10-04-2011, 07:25 PM #12Junior Guru Wannabe
- Join Date
- Apr 2011
- Location
- Myrtle Beach, SC
- Posts
- 46
-
10-05-2011, 12:41 AM #13Web Hosting Master
- Join Date
- Mar 2008
- Posts
- 1,717
Supposedly ufdbguard is quicker, but I've never used it.
I used to run the oldest commercial Mumble host.
Similar Threads
-
Guide:Setup Squid as a HTTP proxy on your VPS to browse blocked web sites!
By Ruchirablog in forum VPS TutorialsReplies: 41Last Post: 04-02-2012, 05:38 PM -
host multiple squid proxy server with different IP address in one Squid
By p-root in forum Hosting Security and TechnologyReplies: 3Last Post: 05-24-2011, 08:34 AM -
Google allows block sites
By hellind2 in forum Web Hosting LoungeReplies: 10Last Post: 03-18-2011, 09:23 AM -
Https sites block - squid
By minim in forum Hosting Security and TechnologyReplies: 3Last Post: 06-01-2010, 09:27 AM -
block vicious sites?
By andonio in forum Hosting Security and TechnologyReplies: 3Last Post: 12-07-2004, 04:20 AM