Wireless Access

last person joined: 20 hours ago 

Access network design for branch, remote, outdoor, and campus locations with HPE Aruba Networking access points and mobility controllers.
Expand all | Collapse all

BLOCK A URL INCLUDING A WORD

This thread has been viewed 5 times
  • 1.  BLOCK A URL INCLUDING A WORD

    Posted Jan 31, 2020 01:00 PM

    Hello.

     

    Is it possible to block all URLs that contain a cetain word, not a URLs?

     

    I want to block any URLs that contain the word "porno" (it is for a school). I have configured WEBCC, with a filter to pornography, but students write "porno" in google and it shows many links. Of course if they clic any link they cannot access the page, but if they go to the tab "images", they can see many pictures about porno.

     

    I have seen that the URL https://www.google.com/search?q=porno&rlz=1C1GCEU_esES821ES821&sxsrf=ACYBGNT_gbTnCW7uUE5pXTGpzskp2-xhjA:1580477176463&source=lnms&tbm=isch&sa=X&ved=2ahUKEwj6xLal-K3nAhVXAWMBHckhBMAQ_AUoAXoECAsQAw&biw=1280&bih=881

    includes the word "porno", so I have thought that including a rule to block the name "porno" would work. Would it work? Is there any other way to block thouse images?

     

    Regards.



  • 2.  RE: BLOCK A URL INCLUDING A WORD
    Best Answer

    Posted Feb 02, 2020 12:19 PM

    As I could not find a solution, I opted for another way to solve this issue:

     

    1. I included in the router a command to point www.google.com to the IP to 216.239.38.120 (Cisco: ip host www.google.com 216.239.38.120). This is the IP for the version of the google search with no explicit images of sex.
    2. I configured the router to be a dns server (Cisco: ip dns server); also the dns servers for this router (Cisco: ip name-server 1.1.1.1 8.8.8.8).
    3. I configured the dhcp so the dns server for the clients is the router IP.
    4. In the controller, created a role to assign to the clients, with the next rules:
      1. One rule to allow www.google.com
      2. Another rules to block pornography and search-engines
      3. The last rules to allow traffic.

    With this configuration I only allow to use www.google.com to use for searching; the rest are blocked. Fortunately, google has a version for safe search.

     

    P.S: Actually, I permit www.google.com and www.google.es. Both in the router point to the same IP 216.239.38.120.



  • 3.  RE: BLOCK A URL INCLUDING A WORD

    EMPLOYEE
    Posted Feb 03, 2020 05:02 AM

    That is probably close to as good you can get. Because all google traffic is HTTPS encrypted, there is no way to filter on keywords or URL parts. Closest is to filter on site categories or reputaton, where that is a decision for the complete site which makes it hard for search engines or mixed content sites.

     

    Thanks for sharing.