search

How to do URL filtering

May 25, 2023 am 08:55 AM
url

url filtering

1 Create a class-map (class map) to identify transmission traffic.

The first network segment of the intranet

Second definition of regular expression, determine the (domain name) keyword contained in the URL

Third check the IP message header , whether it is http traffic

2 Create policy-map (policy map), associate class-map

either allow this link

or discard this link

Usually the policy is applied to the inside (inbound) interface

Only one policy mapping can be applied to an interface

3 Apply class-map to the interface.

-------------------------------------------------- ----------------------------------------

//Define ACL access control list aclfile//

access-list aclfile extended permit tcp 192.168.100.0 255.255.255.0 any eq www

Establish class mapping aclclass

class -map aclclass

match access-list aclfile //Match access control list//

//Define regular expressions to specify websites that need to be filtered and are not allowed to be accessed//

regex url "\.accp\.com" //*Be careful not to write the slash backwards*//

Create a class mapping urlclass

class-map type regex match-any urlclass

match regex url // call matching regular expression //

httpclass // Create a category mapping for checking traffic //

## Class-Map Type Inspect httpclass

#match request header host regex class urlclass //Call the previously configured urlclass1//

----------------------- -------------------------------------------------- ----------------

policy-map type inspect http httppolicy //Create policy mapping //

class httpclass                                                                                                                         using   use   using   use                 ’ use ’s ’ s ’ s               ‐ ‐ ‐‐ ‐‐ ‐ ​ ​ ​ ​ ​ //Create policy mapping //

class httpclass ​ ​ ​ ​ ​ ​ ​ ​ //Call the inspection that has been done Class mapping of http header //

drop-connection log                                                                     use using using using ‐                     ‐ ‐                                 ’ ’ ’ ’ ’ ‐ ‐ ‐ ‐ ‐ ‐ o ###### Class ACLCLASS // Call the class mapping of the access control list // ###### stect http httppolicy // Check the defined strategic mapping // ##### Service-Policy Insidepolicy Interface INSS IDE //Apply on port//###

The above is the detailed content of How to do URL filtering. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:亿速云. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.