Jump to content
  • Entries

    16114
  • Comments

    7952
  • Views

    86392974

Contributors to this blog

  • HireHackking 16114

About this blog

Hacking techniques include penetration testing, network security, reverse cracking, malware analysis, vulnerability exploitation, encryption cracking, social engineering, etc., used to identify and fix security flaws in systems.

1. Check whether the mod_deflate module has been loaded by apache.

Enter the command httpd -M to view. If the field deflate_module (shared) is displayed, it means that the module has been loaded successfully.

2. Find the configuration file httpd.conf and modify it. The modification method is to add the following code at the end:

(PS: The location of this configuration file is usually in two places: /etc/https/conf/httpd.conf or /usr/local/apache/conf/httpd.conf)

ifmodule mod_deflate.c

SetOutputFilter DEFLATE

SetEnvIfNoCase Request_URI .(?gif|jpe?g|png)$ no-gzip don-vary

SetEnvIfNoCase Request_URI .(?exe|t?gz|zip|bz2|sit|rar)$ no-gzip don-vary

SetEnvIfNoCase Request_URI .(?pdf|mov|avi|mp3|mp4|rm)$ no-gzip don-vary

DeflateCompressionLevel 6

AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php

AddOutputFilter DEFLATE js css

/ifmodule3.Restart Apache service

service httpd restart4. Verify that the web page has enabled gzip compression.QQ截图20190827194436.png