CLI举例:通过URL分类控制用户访问的网站

华为CLI举例:通过URL分类控制用户访问的网站

配置基于URL分类的URL过滤功能,可以实现对用户访问的某一类网站的控制。既可以是FW自带的预定义分类,也可以是管理员配置的自定义分类。

组网需求

如图1所示,FW作为企业网关部署在网络边界,对用户访问外部网络的HTTP请求进行URL过滤。

公司有研发部门员工和市场部门员工两类,具体需求如下:

  • 研发部门员工只可以在每天的09:00~17:00访问教育/科学类、搜索/门户类网站。其他网站均不能访问。
  • 市场部门员工只可以在每天的09:00~17:00访问教育/科学类、搜索/门户类、社会焦点类网站和一个特定的URL(www.example.com/news)和域名(www.example.net)。其他网站均不能访问。

图1 通过URL分类控制用户访问的网站
 

配置思路
  1. 配置接口IP地址和安全区域,完成网络基本参数配置。
  2. 配置远程查询服务器,用来获取URL与预定义分类的对应关系。本例中教育/科学类、搜索/门户类、社会焦点类网站可以通过预定义分类来进行URL过滤控制。为了可以正常使用远程查询功能,需要如下配置:
    1. 激活License并且确保该License在有效服务期内。
    2. 加载URL远程查询组件包。
    3. 配置DNS服务器,确保FW可以正确解析sec.huawei.com。
    4. 配置远程查询服务器的相关参数,包括查询方式、国家名称和超时时间。
    5. 配置安全策略并引用自定义服务,允许FW访问调度中心sec.huawei.com。其中自定义服务中需包含:

      • TCP协议:目的端口为443(与调度中心sec.huawei.com进行交互)
      • TCP协议:目的端口为12612(与调度服务器进行交互)
      • UDP协议:目的端口为12600(与查询服务器进行交互)
  3. 配置自定义分类url_userdefine_category,将www.example.com/news加入自定义URL中,将www.example.net加入自定义域名中。
  4. 针对研发部门员工和市场部门员工,新建两个URL过滤配置文件profile_url_research和profile_url_marketing,设置URL自定义分类和预定义分类的控制动作。
  5. 配置时间段和用户组。

  6. 配置两个安全策略,引用时间段、用户组、URL过滤配置文件等信息,实现针对不同用户组和不同时间段的URL访问控制。

操作步骤
  1. 配置接口IP地址和安全区域,完成网络基本参数配置。
    配置GigabitEthernet 1/0/1接口IP地址,将接口加入untrust域。<FW> system-view
    [FW] interface GigabitEthernet 1/0/1
    [FW-GigabitEthernet1/0/1] ip address 1.1.1.1 24
    [FW-GigabitEthernet1/0/1] quit
    [FW] firewall zone untrust
    [FW-zone-untrust] add interface GigabitEthernet 1/0/1
    [FW-zone-untrust] quit配置GigabitEthernet 1/0/3接口IP地址,将接口加入trust域。[FW] interface GigabitEthernet 1/0/3
    [FW-GigabitEthernet1/0/3] ip address 10.3.0.1 24
    [FW-GigabitEthernet1/0/3] quit
    [FW] firewall zone trust
    [FW-zone-trust] add interface GigabitEthernet 1/0/3
    [FW-zone-trust] quit

  2. 配置远程查询服务器,用来获取URL与预定义分类的对应关系。
    ​
    激活License并且确保该License在有效服务期内。具体配置请参见License管理。
    加载URL远程查询组件包。具体配置请参见系统更新。
    配置DNS服务器。
    [FW] dns resolve
    [FW] dns server 10.2.0.70
    配置远程查询服务器的相关参数,包括查询方式、国家名称和超时时间。
    [FW] country CN
    [FW] url-filter query timeout time 3 action allow
    配置自定义服务。
    [FW] ip service-set service_sec_huawei_com type object
    [FW-object-service-set-service_sec_huawei_com] service protocol TCP source-port 0 to 65535 destination-port 443
    [FW-object-service-set-service_sec_huawei_com] service protocol TCP source-port 0 to 65535 destination-port 12612
    [FW-object-service-set-service_sec_huawei_com] service protocol UDP source-port 0 to 65535 destination-port 12600
    [FW-object-service-set-service_sec_huawei_com] quit
    配置安全策略,引用自定义服务,允许FW访问调度中心。
    [FW] security-policy
    [FW-policy-security] rule name policy_sec_huawei_com
    [FW-policy-security-rule-policy_sec_huawei_com] source-zone local
    [FW-policy-security-rule-policy_sec_huawei_com] destination-zone untrust
    [FW-policy-security-rule-policy_sec_huawei_com] service service_sec_huawei_com
    [FW-policy-security-rule-policy_sec_huawei_com] action permit
    [FW-policy-security-rule-policy_sec_huawei_com] quit
    [FW-policy-security] quit
    ​

  3. 配置URL自定义分类。

    [FW] url-filter category user-defined name url_userdefine_category
    [FW-cate-user-defined-url_userdefine_category] description url userdefine category of access control for marketing.
    [FW-cate-user-defined-url_userdefine_category] add url www.example.com/news
    [FW-cate-user-defined-url_userdefine_category] add host www.example.net
    [FW-cate-user-defined-url_userdefine_category] quit

  4. 配置URL过滤配置文件。

    通过display url-filter category pre-defined命令,可以查询到如下预定义分类和ID的对应关系。17:教育/科学类(Education/Science)
    15:搜索/门户类(Search Engines/Portals)
    5:社会焦点类(Social Focus)为研发部门配置URL过滤配置文件。[FW] profile type url-filter name profile_url_research 
    [FW-profile-url-filter-profile_url_research] description URL filter profile of web access control for research.
    [FW-profile-url-filter-profile_url_research] category user-defined action block
    [FW-profile-url-filter-profile_url_research] category pre-defined action block
    [FW-profile-url-filter-profile_url_research] category pre-defined category-id 15 action allow
    [FW-profile-url-filter-profile_url_research] category pre-defined category-id 17 action allow
    [FW-profile-url-filter-profile_url_research] quit为市场部门配置URL过滤配置文件。[FW] profile type url-filter name profile_url_marketing 
    [FW-profile-url-filter-profile_url_marketing] description URL filter profile of web access control for marketing.
    [FW-profile-url-filter-profile_url_marketing] category user-defined action block
    [FW-profile-url-filter-profile_url_marketing] category pre-defined action block
    [FW-profile-url-filter-profile_url_marketing] category pre-defined category-id 5 action allow
    [FW-profile-url-filter-profile_url_marketing] category pre-defined category-id 15 action allow
    [FW-profile-url-filter-profile_url_marketing] category pre-defined category-id 17 action allow
    [FW-profile-url-filter-profile_url_marketing] category user-defined name url_userdefine_category action allow
    [FW-profile-url-filter-profile_url_marketing] quit
  5. 配置时间段。

    [FW] time-range time_range
    [FW-time-range-time_range] period-range 09:00:00 to 17:00:00 daily
    [FW-time-range-time_range] quit

  6. 在安全策略中应用URL过滤配置文件。

    本例中引用到的用户组research(研发部门员工)和用户组marketing(市场部门员工)假设已经创建完成。为研发部门配置安全策略。[FW] security-policy
    [FW-policy-security] rule name policy_sec_research
    [FW-policy-security-rule-policy_sec_research] description Security policy of web access protect for research.
    [FW-policy-security-rule-policy_sec_research] source-zone trust
    [FW-policy-security-rule-policy_sec_research] destination-zone untrust
    [FW-policy-security-rule-policy_sec_research] source-address 10.3.0.0 mask 255.255.255.0
    [FW-policy-security-rule-policy_sec_research] user user-group /default/research
    [FW-policy-security-rule-policy_sec_research] time-range time_range
    [FW-policy-security-rule-policy_sec_research] action permit
    [FW-policy-security-rule-policy_sec_research] profile url-filter profile_url_research
    [FW-policy-security-rule-policy_sec_research] quit为市场部门配置安全策略。[FW-policy-security] rule name policy_sec_marketing
    [FW-policy-security-rule-policy_sec_marketing] description Security policy of web access protect for marketing.
    [FW-policy-security-rule-policy_sec_marketing] source-zone trust
    [FW-policy-security-rule-policy_sec_marketing] destination-zone untrust
    [FW-policy-security-rule-policy_sec_marketing] source-address 10.3.0.0 mask 255.255.255.0
    [FW-policy-security-rule-policy_sec_marketing] user user-group /default/marketing
    [FW-policy-security-rule-policy_sec_marketing] time-range time_range
    [FW-policy-security-rule-policy_sec_marketing] action permit
    [FW-policy-security-rule-policy_sec_marketing] profile url-filter profile_url_marketing
    [FW-policy-security-rule-policy_sec_marketing] quit
    [FW-policy-security] quit

  7. 提交内容安全配置文件。

    [FW] engine configuration commit
    Info: The operation may last for several minutes, please wait.
    Info: URL submitted configurations successfully.
    Info: Finish committing engine compiling.

结果验证

配置脚本
#                                                                               
sysname FW
#                                                                               dns resolve                                                                    dns server 10.2.0.70                                                           
#                                                                               
ip service-set service_sec_huawei_com type object                               service 0 protocol tcp source-port 0 to 65535 destination-port 443              service 1 protocol tcp source-port 0 to 65535 destination-port 12612           service 2 protocol udp source-port 0 to 65535 destination-port 12600           
#                                                                               country CN                                                                     
#                                                                               time-range time_range                                                          period-range 09:00:00 to 17:00:00 daily                                       
#                                                                               
interface GigabitEthernet1/0/1   undo shutdownip address 1.1.1.1 255.255.255.0
#                                                                               
interface GigabitEthernet1/0/3   undo shutdownip address 10.3.0.1 255.255.255.0
#                                                                               
firewall zone trust                                                             set priority 85                                                                add interface GigabitEthernet1/0/3
#                                                                               
firewall zone untrust                                                           set priority 5                                                                 add interface GigabitEthernet1/0/1
#
url-filter category user-defined name url_userdefine_category                   description url userdefine category of access control for marketing.           add url www.example.com/news                                                   add  host www.example.net                                                      
profile type url-filter name profile_url_research                               description URL filter profile of web access control for research.             category pre-defined subcategory-id 101 action blockcategory pre-defined subcategory-id 102 action blockcategory pre-defined subcategory-id 162 action blockcategory pre-defined subcategory-id 163 action blockcategory pre-defined subcategory-id 164 action blockcategory pre-defined subcategory-id 165 action blockcategory pre-defined subcategory-id 103 action blockcategory pre-defined subcategory-id 166 action blockcategory pre-defined subcategory-id 167 action blockcategory pre-defined subcategory-id 168 action blockcategory pre-defined subcategory-id 104 action blockcategory pre-defined subcategory-id 169 action blockcategory pre-defined subcategory-id 170 action blockcategory pre-defined subcategory-id 105 action blockcategory pre-defined subcategory-id 171 action blockcategory pre-defined subcategory-id 172 action blockcategory pre-defined subcategory-id 173 action blockcategory pre-defined subcategory-id 174 action blockcategory pre-defined subcategory-id 106 action blockcategory pre-defined subcategory-id 108 action blockcategory pre-defined subcategory-id 177 action blockcategory pre-defined subcategory-id 251 action blockcategory pre-defined subcategory-id 109 action blockcategory pre-defined subcategory-id 110 action blockcategory pre-defined subcategory-id 111 action blockcategory pre-defined subcategory-id 112 action blockcategory pre-defined subcategory-id 114 action blockcategory pre-defined subcategory-id 115 action blockcategory pre-defined subcategory-id 117 action blockcategory pre-defined subcategory-id 178 action blockcategory pre-defined subcategory-id 179 action blockcategory pre-defined subcategory-id 180 action blockcategory pre-defined subcategory-id 181 action blockcategory pre-defined subcategory-id 248 action blockcategory pre-defined subcategory-id 118 action blockcategory pre-defined subcategory-id 119 action blockcategory pre-defined subcategory-id 122 action blockcategory pre-defined subcategory-id 182 action blockcategory pre-defined subcategory-id 183 action blockcategory pre-defined subcategory-id 184 action blockcategory pre-defined subcategory-id 123 action blockcategory pre-defined subcategory-id 124 action blockcategory pre-defined subcategory-id 186 action blockcategory pre-defined subcategory-id 187 action blockcategory pre-defined subcategory-id 188 action blockcategory pre-defined subcategory-id 189 action blockcategory pre-defined subcategory-id 125 action blockcategory pre-defined subcategory-id 127 action blockcategory pre-defined subcategory-id 128 action blockcategory pre-defined subcategory-id 130 action blockcategory pre-defined subcategory-id 131 action blockcategory pre-defined subcategory-id 132 action blockcategory pre-defined subcategory-id 197 action blockcategory pre-defined subcategory-id 198 action blockcategory pre-defined subcategory-id 199 action blockcategory pre-defined subcategory-id 200 action blockcategory pre-defined subcategory-id 227 action blockcategory pre-defined subcategory-id 228 action blockcategory pre-defined subcategory-id 133 action blockcategory pre-defined subcategory-id 201 action blockcategory pre-defined subcategory-id 202 action blockcategory pre-defined subcategory-id 204 action blockcategory pre-defined subcategory-id 205 action blockcategory pre-defined subcategory-id 134 action blockcategory pre-defined subcategory-id 135 action blockcategory pre-defined subcategory-id 136 action blockcategory pre-defined subcategory-id 137 action blockcategory pre-defined subcategory-id 138 action blockcategory pre-defined subcategory-id 139 action blockcategory pre-defined subcategory-id 140 action blockcategory pre-defined subcategory-id 141 action blockcategory pre-defined subcategory-id 206 action blockcategory pre-defined subcategory-id 207 action blockcategory pre-defined subcategory-id 208 action blockcategory pre-defined subcategory-id 209 action blockcategory pre-defined subcategory-id 210 action blockcategory pre-defined subcategory-id 229 action blockcategory pre-defined subcategory-id 142 action blockcategory pre-defined subcategory-id 143 action blockcategory pre-defined subcategory-id 144 action blockcategory pre-defined subcategory-id 145 action blockcategory pre-defined subcategory-id 146 action blockcategory pre-defined subcategory-id 147 action blockcategory pre-defined subcategory-id 211 action blockcategory pre-defined subcategory-id 212 action blockcategory pre-defined subcategory-id 213 action blockcategory pre-defined subcategory-id 240 action blockcategory pre-defined subcategory-id 253 action blockcategory pre-defined subcategory-id 149 action blockcategory pre-defined subcategory-id 150 action blockcategory pre-defined subcategory-id 214 action blockcategory pre-defined subcategory-id 215 action blockcategory pre-defined subcategory-id 216 action blockcategory pre-defined subcategory-id 217 action blockcategory pre-defined subcategory-id 151 action blockcategory pre-defined subcategory-id 218 action blockcategory pre-defined subcategory-id 219 action blockcategory pre-defined subcategory-id 220 action blockcategory pre-defined subcategory-id 221 action blockcategory pre-defined subcategory-id 222 action blockcategory pre-defined subcategory-id 223 action blockcategory pre-defined subcategory-id 230 action blockcategory pre-defined subcategory-id 252 action blockcategory pre-defined subcategory-id 152 action blockcategory pre-defined subcategory-id 153 action blockcategory pre-defined subcategory-id 238 action blockcategory pre-defined subcategory-id 154 action blockcategory pre-defined subcategory-id 155 action blockcategory pre-defined subcategory-id 224 action blockcategory pre-defined subcategory-id 225 action blockcategory pre-defined subcategory-id 156 action blockcategory pre-defined subcategory-id 157 action blockcategory pre-defined subcategory-id 158 action blockcategory pre-defined subcategory-id 231 action blockcategory pre-defined subcategory-id 232 action blockcategory pre-defined subcategory-id 159 action blockcategory pre-defined subcategory-id 254 action blockcategory pre-defined subcategory-id 160 action blockcategory pre-defined subcategory-id 161 action blockcategory pre-defined subcategory-id 176 action blockcategory pre-defined subcategory-id 226 action blockcategory pre-defined subcategory-id 234 action blockcategory pre-defined subcategory-id 235 action blockcategory pre-defined subcategory-id 236 action blockcategory pre-defined subcategory-id 237 action blockcategory pre-defined subcategory-id 239 action blockcategory pre-defined subcategory-id 241 action blockcategory pre-defined subcategory-id 233 action blockcategory user-defined name url_userdefine_category action block
profile type url-filter name profile_url_marketing                              description URL filter profile of web access control for marketing.            category pre-defined subcategory-id 101 action blockcategory pre-defined subcategory-id 102 action blockcategory pre-defined subcategory-id 162 action blockcategory pre-defined subcategory-id 163 action blockcategory pre-defined subcategory-id 164 action blockcategory pre-defined subcategory-id 165 action blockcategory pre-defined subcategory-id 103 action blockcategory pre-defined subcategory-id 166 action blockcategory pre-defined subcategory-id 167 action blockcategory pre-defined subcategory-id 168 action blockcategory pre-defined subcategory-id 104 action blockcategory pre-defined subcategory-id 169 action blockcategory pre-defined subcategory-id 170 action blockcategory pre-defined subcategory-id 106 action blockcategory pre-defined subcategory-id 108 action blockcategory pre-defined subcategory-id 177 action blockcategory pre-defined subcategory-id 251 action blockcategory pre-defined subcategory-id 109 action blockcategory pre-defined subcategory-id 110 action blockcategory pre-defined subcategory-id 111 action blockcategory pre-defined subcategory-id 112 action blockcategory pre-defined subcategory-id 114 action blockcategory pre-defined subcategory-id 115 action blockcategory pre-defined subcategory-id 117 action blockcategory pre-defined subcategory-id 178 action blockcategory pre-defined subcategory-id 179 action blockcategory pre-defined subcategory-id 180 action blockcategory pre-defined subcategory-id 181 action blockcategory pre-defined subcategory-id 248 action blockcategory pre-defined subcategory-id 118 action blockcategory pre-defined subcategory-id 119 action blockcategory pre-defined subcategory-id 122 action blockcategory pre-defined subcategory-id 182 action blockcategory pre-defined subcategory-id 183 action blockcategory pre-defined subcategory-id 184 action blockcategory pre-defined subcategory-id 123 action blockcategory pre-defined subcategory-id 124 action blockcategory pre-defined subcategory-id 186 action blockcategory pre-defined subcategory-id 187 action blockcategory pre-defined subcategory-id 188 action blockcategory pre-defined subcategory-id 189 action blockcategory pre-defined subcategory-id 125 action blockcategory pre-defined subcategory-id 127 action blockcategory pre-defined subcategory-id 128 action blockcategory pre-defined subcategory-id 130 action blockcategory pre-defined subcategory-id 131 action blockcategory pre-defined subcategory-id 132 action blockcategory pre-defined subcategory-id 197 action blockcategory pre-defined subcategory-id 198 action blockcategory pre-defined subcategory-id 199 action blockcategory pre-defined subcategory-id 200 action blockcategory pre-defined subcategory-id 227 action blockcategory pre-defined subcategory-id 228 action blockcategory pre-defined subcategory-id 133 action blockcategory pre-defined subcategory-id 201 action blockcategory pre-defined subcategory-id 202 action blockcategory pre-defined subcategory-id 204 action blockcategory pre-defined subcategory-id 205 action blockcategory pre-defined subcategory-id 134 action blockcategory pre-defined subcategory-id 135 action blockcategory pre-defined subcategory-id 136 action blockcategory pre-defined subcategory-id 137 action blockcategory pre-defined subcategory-id 138 action blockcategory pre-defined subcategory-id 139 action blockcategory pre-defined subcategory-id 140 action blockcategory pre-defined subcategory-id 141 action blockcategory pre-defined subcategory-id 206 action blockcategory pre-defined subcategory-id 207 action blockcategory pre-defined subcategory-id 208 action blockcategory pre-defined subcategory-id 209 action blockcategory pre-defined subcategory-id 210 action blockcategory pre-defined subcategory-id 229 action blockcategory pre-defined subcategory-id 142 action blockcategory pre-defined subcategory-id 143 action blockcategory pre-defined subcategory-id 144 action blockcategory pre-defined subcategory-id 145 action blockcategory pre-defined subcategory-id 146 action blockcategory pre-defined subcategory-id 147 action blockcategory pre-defined subcategory-id 211 action blockcategory pre-defined subcategory-id 212 action blockcategory pre-defined subcategory-id 213 action blockcategory pre-defined subcategory-id 240 action blockcategory pre-defined subcategory-id 253 action blockcategory pre-defined subcategory-id 149 action blockcategory pre-defined subcategory-id 150 action blockcategory pre-defined subcategory-id 214 action blockcategory pre-defined subcategory-id 215 action blockcategory pre-defined subcategory-id 216 action blockcategory pre-defined subcategory-id 217 action blockcategory pre-defined subcategory-id 151 action blockcategory pre-defined subcategory-id 218 action blockcategory pre-defined subcategory-id 219 action blockcategory pre-defined subcategory-id 220 action blockcategory pre-defined subcategory-id 221 action blockcategory pre-defined subcategory-id 222 action blockcategory pre-defined subcategory-id 223 action blockcategory pre-defined subcategory-id 230 action blockcategory pre-defined subcategory-id 252 action blockcategory pre-defined subcategory-id 152 action blockcategory pre-defined subcategory-id 153 action blockcategory pre-defined subcategory-id 238 action blockcategory pre-defined subcategory-id 154 action blockcategory pre-defined subcategory-id 155 action blockcategory pre-defined subcategory-id 224 action blockcategory pre-defined subcategory-id 225 action blockcategory pre-defined subcategory-id 156 action blockcategory pre-defined subcategory-id 157 action blockcategory pre-defined subcategory-id 158 action blockcategory pre-defined subcategory-id 231 action blockcategory pre-defined subcategory-id 232 action blockcategory pre-defined subcategory-id 159 action blockcategory pre-defined subcategory-id 254 action blockcategory pre-defined subcategory-id 160 action blockcategory pre-defined subcategory-id 161 action blockcategory pre-defined subcategory-id 176 action blockcategory pre-defined subcategory-id 226 action blockcategory pre-defined subcategory-id 234 action blockcategory pre-defined subcategory-id 235 action blockcategory pre-defined subcategory-id 236 action blockcategory pre-defined subcategory-id 237 action blockcategory pre-defined subcategory-id 239 action blockcategory pre-defined subcategory-id 241 action blockcategory pre-defined subcategory-id 233 action block
#                                                                               
security-policy                                                                 rule name policy_sec_huawei_com                                                source-zone local                                                             destination-zone untrust                                                      service service_sec_huawei_com                                                action permit                                                                 rule name policy_sec_research                                                  description Security policy of web access protect for research.               source-zone trust                                                             destination-zone untrustsource-address 10.3.0.0 mask 255.255.255.0user user-group /default/research                                             time-range time_range                                                         profile url-filter profile_url_research                                       action permit                                                                 rule name policy_sec_marketing                                                 description Security policy of web access protect for marketing.              source-zone trust                                                             destination-zone untrust                                                      source-address 10.3.0.0 mask 255.255.255.0user user-group /default/marketing                                            time-range time_range                                                         profile url-filter profile_url_marketing                                      action permit                             

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/bicheng/9542.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

华为OD机试【城市聚集度】(java)(200分)

1、题目描述 一张地图上有N个城市&#xff0c;城市和城市之间有且只有一条道路相连&#xff0c;要么直接相连&#xff0c;要么通过其他城市中转相连(可中转一次或多次)。城市与城市之间的道路都不会成环。 当切断通往某城市i的所有道路后&#xff0c;地图上将分成多个连通的城…

mongoDB分组查询

完整代码 //根据医院编号 和 科室编号 &#xff0c;查询排班规则数据Overridepublic Map<String, Object> getRuleSchedule(long page, long limit, String hoscode, String depcode) {//1 根据医院编号 和 科室编号 查询Criteria criteria Criteria.where("hosco…

云手机:海外舆情监控的新工具

在数字化时代&#xff0c;海外舆情监控对于企业、品牌和政府机构来说&#xff0c;已经变得至关重要。传统的舆情监控方法往往受限于地域、设备和技术&#xff0c;而云手机的出现&#xff0c;为海外舆情监控带来了全新的解决方案。 一、云手机与海外舆情监控的完美结合 云手机作…

Flask 通过SQLAlchemy连接mySQL实现一个实用的用户管理功能

Flask 通过SQLAlchemy连接mySQL实现一个实用的用户管理功能 安装配置 首先确保已经安装如下程序&#xff1a; flask&#xff1a;用于构建web应用程序。flask-sqlalchemy&#xff1a;用于在 Flask 中连接 MySQL 数据库&#xff0c;通过pip install flask-sqlalchemy安装。pym…

Web安全:SQL注入漏洞详解,SQL注入常见功能、危害、分类、判断注入点、注入方式

「作者简介」:2022年北京冬奥会网络安全中国代表队,CSDN Top100,就职奇安信多年,以实战工作为基础对安全知识体系进行总结与归纳,著作适用于快速入门的 《网络安全自学教程》,内容涵盖系统安全、信息收集等12个知识域的一百多个知识点,持续更新。 这一章节我们需要知道S…

FPGA+炬力ARM实现VR视频播放器方案,3D眼镜显示

3D眼镜显示&#xff1a; FPGA炬力ARM方案&#xff0c;单个视频源信号&#xff0c;同时驱动两个LCD屏显示&#xff0c;实现3D 沉浸式播放 客户应用&#xff1a;VR视频播放器 主要功能&#xff1a; 1.支持多种格式视频文件播放 2.支持2D/3D 效果实时切换播放 3.支持TF卡/U盘文…

24数维杯C题18页保姆级思路+代码+后续参考论文

18页保姆级思路&#xff1a; 24数维杯C题20页保姆级思路&#xff0b;可执行代码&#xff0b;参考论文 简单麦麦https://www.jdmm.cc/file/2710641/ 群&#xff1a;666165284 1&#xff09;确定天然气水合物资源分布范围 要确定天然气水合物资源的分布范围&#xff0c;需要分…

谷歌上架,白包号放着备用,啥也没干也被封?是什么情况?

众所周知&#xff0c;Google Play Store是全球最大的应用商店之一&#xff0c;每天都有大量的应用被上传和下架。 同时&#xff0c;随着谷歌上架行业的发展&#xff0c;谷歌现在的审核系统越来越智能和先进&#xff0c;开发者们尝试着各种方法来提高上架成功率。其中&#xff…

提升工作效率的秘密武器

&#x1f31f;工作小能手们&#xff0c;你们是否还在为日复一日的办公琐事感到头疼&#xff1f;别急&#xff0c;今天我就为大家种草几款鲜为人知但超级实用的工作软件&#xff0c;让你的工作效率飞起来&#xff01;&#x1f308; 1️⃣《亿可达》 &#x1f5a5;️ 它是一款自…

Windows系统本地部署DrawDB数据库设计工具并实现无公网IP远程访问

文章目录 1. Windows本地部署DrawDB2. 安装Cpolar内网穿透3. 实现公网访问DrawDB4. 固定DrawDB公网地址 开发中很多时候都会使用到数据库&#xff0c;所以选择一个好用的数据库设计工具会让工作效率翻倍。在当今数字化时代&#xff0c;数据库管理是许多企业和个人项目的核心。设…

Day2:调节屏幕驱动

Day2调节屏幕驱动 原理图&#xff1a; 要想调节屏幕驱动

全球10KM土地利用程度数据

全球10KM土地利用程度数据 数据介绍 “一带一路”监测区域土地利用程度指数平均值为0.34&#xff0c;不同区域利用程度差异明显&#xff0c;但总体上高值区域与人口分布的稠密区域吻合。中南半岛、南亚、欧洲和小亚细亚半岛等地海拔较低&#xff0c;水热组合条件较好&#xff…

服务器直连电脑(盒子直连电脑)电脑需要设置为固定ip才能访问盒子

文章目录 现象盒子设置为固定ip&#xff0c;pc设置成固定ip&#xff08;以太网网卡&#xff0c;realtak那个&#xff0c;不是tap-windows那个&#xff0c;tap-windows不用管&#xff09;&#xff0c;在pc上用ip搜索工具搜索&#xff0c;可以搜到盒子ip。盒子设置为固定ip&#…

Metes and Bounds Pro for Mac 激活版:精准数据转换与绘图利器

Metes and Bounds Pro for Mac是一款专为土地测量和边界划定而设计的专业软件&#xff0c;为Mac用户提供了高效、精确的测量工具。其核心功能在于其全面的测量工具和简便的操作流程&#xff0c;能够满足在土地管理、房地产开发、农业规划等领域的多样化需求。 这款软件集合了距…

基于docker安装flink

文章目录 环境准备Flinkdocker-compose方式二进制部署 KafkaMysql Flink 执行 SQL命令进入SQL客户端CLI执行SQL查询表格模式变更日志模式Tableau模式窗口计算 窗口计算滚动窗口demo滑动窗口 踩坑 环境准备 Flink docker-compose方式 version: "3" services:jobman…

媲美Suno、Udio!AI铁了心,要砸音乐人的饭碗

5月10日凌晨&#xff0c;著名语音生成式AI平台ElevenLabs在社交平台宣布&#xff0c;推出文本生成歌曲产品ElevenLabs Music。 从其展示的效果来看&#xff0c;音乐的节奏感、和声、乐器的搭配、情感表达、创意性、风格的多样性、高/低音&#xff0c;可媲美该领域的两款头部产…

618精选好物推荐,五款品质与性价比并存的选择!

在繁忙的生活中&#xff0c;我们总是渴望找到那些能够提升生活品质的好物&#xff0c;让每一天都过得更加精彩。而618购物节&#xff0c;无疑是寻找这些好物的绝佳时机。在这个盛大的购物狂欢中&#xff0c;我们为大家精选了五款品质与性价比并存的选择&#xff0c;让大家在享受…

『大模型笔记』Google CEO Sundar Pichai(桑达尔·皮查伊)谈人工智能的未来!

Google CEO Sundar Pichai(桑达尔皮查伊)谈人工智能的未来! 文章目录 一. Google CEO谈人工智能的未来总结摘要观点时间线二. 参考文献中文字幕视频链接,欢迎关注我的xhs账号:Google CEO 皮查伊谈人工智能的未来! 一. Google CEO谈人工智能的未来

struct和union大小计算规则

Union 一&#xff1a;联合类型的定义 联合也是一种特殊的自定义类型&#xff0c;这种类型定义的变量也包含一系列的成员&#xff0c;特征是这些成员公用同一块空间&#xff08;所以联合也叫共用体&#xff09; 比如&#xff1a;共用了 i 这个较大的空间 二&#xff1a; 联合的…

AI怎么把图形分割下来

1 画一个图形 2 画一条直线分割 用直线段工具&#xff0c;画一条直线 3 分割操作 用 直接选择工具&#xff0c;先选中直线&#xff0c;按shift键&#xff0c;再选中矩形&#xff0c;把他两都选上 路径查找器&#xff0c;点分割(路径查找器面板如果没有&#xff0c;在窗口 菜单…