Community discussions

MikroTik App
 
mikrotik00
just joined
Topic Author
Posts: 2
Joined: Tue Apr 12, 2016 10:18 pm

Google images url

Sun Apr 17, 2016 8:53 pm

Hello everyone :D ,
I'm new here please welcome me , and answer my question:
we really need to work hard to find a way to block google images . I spend a lot of time just trying to block the google images but there is no way , so please if any one has solution for this issue I need your help..

Thank you..
 
pe1chl
Forum Guru
Forum Guru
Posts: 10240
Joined: Mon Jun 08, 2015 12:09 pm

Re: Google images url

Sun Apr 17, 2016 9:11 pm

This is not easily possible. Welcome to the new world of https: impossible to block URLs.
 
mikrotik00
just joined
Topic Author
Posts: 2
Joined: Tue Apr 12, 2016 10:18 pm

Re: Google images url

Sun Apr 17, 2016 9:26 pm

Thanks , but I'll keep trying :D
 
k750
Frequent Visitor
Frequent Visitor
Posts: 65
Joined: Fri Feb 19, 2016 4:40 pm
Location: France / Paris

Re: Google images url

Mon Apr 18, 2016 8:02 pm

Hello,
Firefox there is the Block site 1.1.8.1 Module
There are very effective
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: Google images url

Mon Apr 18, 2016 9:39 pm

This is not easily possible. Welcome to the new world of https: impossible to block URLs.
I'm enjoying this brave new world. Middlebox operators, not so much. :lol:

OP - I think you're going to have to use an http(s) proxy to do what you want in today's world. ROS's proxy is pretty lightweight and requires that you set browsers up to explicitly use it as a proxy server if you want to be able to filter SSL-based URLs. If you need to do it with a transparent proxy, then you're going to need an external proxy server such as squid that can do https pass-through after examining the requested URL for policy compliance.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10240
Joined: Mon Jun 08, 2015 12:09 pm

Re: Google images url

Mon Apr 18, 2016 10:13 pm

But a proxy can only filter https by hostname, not by full URL!
So you can block https://images.google.com/ but not https://www.google.com/imghp
(when you don't want to block Google entirely)
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Tue Apr 19, 2016 12:26 am

Don't do those things and deliver the uncensored Internet to your customers. Let the customer to decide what he wants to see and what he doesn't want to see.
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: Google images url

Tue Apr 19, 2016 12:32 am

But a proxy can only filter https by hostname, not by full URL!
So you can block https://images.google.com/ but not https://www.google.com/imghp
(when you don't want to block Google entirely)
I get that when it comes to a transparent proxy - what about an explicitly-configured proxy, though? I can see it both ways because on the one hand, if a browser trusts a proxy to be full man-in-the-middle, the proxy could give its own cert for the proxy->client leg (validating itself to the client), and the browser could be happy with that, trusting the proxy to say "the site you're visiting just gave a bad certificate" in case of bad/revoked/expired certificates on the upstream side. But then I can also see browsers never operating in this mode either. In this case, you're trusting the proxy not to do anything bad... Let's just say that if I went to a hotspot and the banner said "install this certificate in your browser and trust our proxy" I would rip the battery right out of the computer before any further harm could be done. ;)

In general, I dislike middleboxes so I'm not exactly lighting any candles for devices that get stymied by the current wave of SSL adoption.....
Don't do those things and deliver the uncensored Internet to your customers. Let the customer to decide what he wants to see and what he doesn't want to see.
HAha - this was posted while I was writing this reply..... I agree. ;)
 
pe1chl
Forum Guru
Forum Guru
Posts: 10240
Joined: Mon Jun 08, 2015 12:09 pm

Re: Google images url

Tue Apr 19, 2016 10:18 am

But a proxy can only filter https by hostname, not by full URL!
So you can block https://images.google.com/ but not https://www.google.com/imghp
(when you don't want to block Google entirely)
I get that when it comes to a transparent proxy - what about an explicitly-configured proxy, though? I can see it both ways because on the one hand, if a browser trusts a proxy to be full man-in-the-middle, the proxy could give its own cert for the proxy->client leg (validating itself to the client), and the browser could be happy with that, trusting the proxy to say "the site you're visiting just gave a bad certificate" in case of bad/revoked/expired certificates on the upstream side. But then I can also see browsers never operating in this mode either. In this case, you're trusting the proxy not to do anything bad... Let's just say that if I went to a hotspot and the banner said "install this certificate in your browser and trust our proxy" I would rip the battery right out of the computer before any further harm could be done. ;)
Yes that can be done, but probably not by a small MikroTik... I am no expert on that, but generally boxes that can do this
require serious CPU power and/or crypto accelleration.

A normal proxy will not decrypt/encrypt but has a CONNECT command. The client connects the proxy, sends a
CONNECT with the hostname and port, the proxy makes the connection and ties the two ends together. Then, the
client negotiates the TLS connection directly with the server, and the proxy has no way of seeing the actual URL
being fetched from the server.

A proxy that is a real man-in-the-middle is possible, and it can even be transparent. But indeed in that case you need
to install a trusted certificate on the client. Not a thing one should do as a hotspot client. In corporate environments
this is done to be able to inspect the data (scan for viruses, block URLs). But there the workstations are under
control of the company and certificates can be automatically installed.
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: Google images url

Tue Apr 19, 2016 5:09 pm

Yep - and we have such boxes at my company for exactly the purpose you stated, virus/policy enforcement, and they do require that we use our own certificate that we push to workstations with AD policy....

Personally, I hate the things. If someone keeps goofing off and playing fantasy football at work, then take disciplinary action. All this putting up fences and having to get 10 hours of recorded footage to prove that you can fire someone is just plain madness in my opinion.

Who is online

Users browsing this forum: Bing [Bot], pe1chl, qatar2022, vagrik and 221 guests