Remove and Uninstall or Disable ModSecurity (mod_security) Gỡ cài đặt hoặc gỡ bỏ và Vô hiệu hoá ModSecurity (mod_security)

ModSecurity is an open source embeddable web application firewall, or intrusion detection and prevention engine for web applications. ModSecurity là một mã nguồn mở embeddable trang web ứng dụng tường lửa, hoặc đột nhập phát hiện và phòng, chống động cơ cho các ứng dụng web. ModSecurity provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring and real-time analysis with no changes to existing infrastructure, by operating as an Apache Web server module mod_security or standalone, and thus increase web application security. ModSecurity cung cấp bảo vệ khỏi một loạt các cuộc tấn công chống lại trang web cho phép các ứng dụng và giám sát lưu lượng truy cập HTTP và thời gian thực mà không có phân tích các thay đổi vào cơ sở hạ tầng hiện có, bằng cách điều hành như là một mô-đun máy chủ web Apache mod_security hoặc standalone, và do đó tăng cường bảo mật ứng dụng web. However, misconfigured or overly strict rule sets, ModSecurity may cause your website to return various errors such as HTTP 403 Forbidden error or access denied error, login problems, or HTTP 412 Precondition Failed error, or HTTP 406 Not Acceptable error and other false positive symptoms. Tuy nhiên, sai hoặc đặt ra những quy định quá nghiêm ngặt, ModSecurity có thể gây ra các trang web của bạn để trở về các lỗi như: HTTP 403 Forbidden lỗi hoặc truy cập bị từ chối lỗi, vấn đề về đăng nhập, hoặc HTTP 412 Precondition Không lỗi, hoặc HTTP 406 Không thể chấp nhận lỗi sai và các triệu chứng tích cực .

To make matter worse, the configuration of ModSecurity rules and filters have to be done manually. Để thực hiện các vấn đề tệ hơn, cấu hình của ModSecurity quy tắc và các bộ lọc để có được thực hiện bằng tay. Although there are free predefined certified rule set which can be used with ModSecurity out of the box, however the rule sets may be not suitable for each and every environment and may interfere with the operation of websites or blogs, and customizing and modifying the rules may be too sophisticated or complicated for some users. Mặc dù có quy định miễn phí predefined xác nhận thiết lập này có thể được sử dụng với ModSecurity ra khỏi hộp, tuy nhiên có thể được đặt ra những quy định không phù hợp cho mỗi và tất cả các môi trường và có thể can thiệp vào hoạt động của các trang web hay blog, và tùy biến và sửa đổi các quy tắc tháng năm được quá phức tạp hoặc phức tạp đối với một số người sử dụng. And for some websites that hosted on shared hosting service, the mod_security may be enable by default without options. Và đối với một số trang web được lưu trữ trên dịch vụ lưu trữ được chia sẻ, các mod_security có thể được cho phép theo mặc định mà không có tùy chọn. So in this case, the best solution or workaround for mod security related issues is to disable mod_security filtering and rules. Vì vậy, trong trường hợp này, giải pháp tốt nhất cho mod workaround hoặc vấn đề liên quan đến an ninh là để vô hiệu hoá mod_security lọc và quy định.

If you're using Apache web server (which mostly do), mod_security can be disabled by adding a specific in .htaccess file. Nếu bạn đang sử dụng máy chủ web Apache (mà chủ yếu là làm), mod_security có thể bị vô hiệu hóa bằng cách thêm một cụ thể trong. Htaccess tập tin. Locate the .htaccess file in Apache web root directory (public_html or /var/www/ or others), if it does not exist, create a new file named .htaccess, and add in the following code: Xác định vị trí tập tin. Htaccess tập tin trong thư mục gốc trang web Apache (public_html hoặc / var / www / hoặc cho người khác), nếu nó không tồn tại, tạo ra một tập tin mới được đặt tên. Htaccess, và thêm trong các mã sau đây:


SecFilterEngine Off SecFilterEngine Tắt
SecFilterScanPOST Off SecFilterScanPOST Tắt

The above entries in the .htaccess will disable the ModSecurity (mod_security) module for the domain. Như đã nêu ở trên trong các mục. Htaccess sẽ vô hiệu hoá ModSecurity (mod_security) mô-đun cho các tên miền.

Uninstallation of ModSecurity (mod_security) from Apache module Uninstallation của ModSecurity (mod_security) từ mô-đun Apache

The easiest way to remove and uninstall mod_security is to comment out or delete the related mod_security entries from httpd.conf Apache configuration file. Cách dễ nhất để xóa bỏ cài đặt và mod_security ra là để bình luận hoặc xóa mod_security có liên quan đến mục từ tập tin cấu hình httpd.conf Apache. The lines that should be removed include: Những dòng bạn cần phải xoá bỏ bao gồm:

AddModule mod_security.c AddModule mod_security.c
LoadModule security_module modules/mod_security.so LoadModule security_module mô-đun / mod_security.so
Include “/usr/local/apache/conf/modsec.conf” This line may be different depending on what variant of Linux or Unix you used and the installation location Bao gồm "/ usr / local / apache / conf / modsec.conf" Dòng này có thể khác nhau tùy thuộc vào những gì biến thể của Linux hay UNIX bạn đã sử dụng và cài đặt địa điểm

Save the httpd.conf and restart the Apache. Lưu httpd.conf và khởi động lại Apache. ModSecurity will not be loaded and as if uninstalled. ModSecurity sẽ không được nạp và nếu như gỡ cài đặt.

If you're using WebHost Manager (WHM), uninstallation is even simpler. Nếu bạn đang sử dụng WebHost Manager (WHM), uninstallation thậm chí là đơn giản. Just scroll to cPanel section, and click on Addon Modules. Chỉ cần di chuyển đến cPanel phần, và click vào Addon module. Then scroll to module named modsecurity. Sau đó, di chuyển đến tên mô-đun modsecurity. It should be checked Install and Keep Updated currently. Cần được kiểm tra và cài đặt Tiếp tục cập nhật hiện nay. Just click on Uninstall to remove the mod security feature from Apache web server. Chỉ cần nhấp vào Gỡ bỏ để loại bỏ các tính năng an ninh mod từ Apache web server.

IMPORTANT : The page is machine translated and provided "as is" without warranty. Lưu ý: Các trang web là máy tính dịch và cung cấp "như là" mà không có bảo hành. Machine translation may be difficult to understand. Máy dịch thuật có thể là khó hiểu. Please refer to Xin vui lòng tham khảo original English article Tiếng Anh bản gốc bài viết whenever possible. bất cứ khi nào có thể.


10 Responses to “Remove and Uninstall or Disable ModSecurity (mod_security)” 10 hồi đáp tới "Hủy bỏ và Vô hiệu hoá Gỡ bỏ hoặc ModSecurity (mod_security)"

  1. Mike Mike
    May 6th, 2009 15:30 6 tháng năm, 2009 15:30
    10 10

    I had this issue and apparently my host had a specific block in place that prevented the .htaccess modification from taking effect. Tôi đã có vấn đề này và apparently máy chủ của tôi đã có một khối cụ thể trong việc ngăn chặn nơi. Htaccess sửa đổi có hiệu lực từ uống.

    The solution to remove the module might not be a good idea since it's a server wide change, there is apparently a whitelist file that you can modify to allow specific domains from being exempt. Các giải pháp để loại bỏ các mô-đun có thể không được là một ý tưởng tốt vì nó là một máy chủ toàn thay đổi, có một danh sách trắng apparently tập tin mà bạn có thể sửa đổi để cho phép các tên miền cụ thể được miễn.

    Just SSH into the server as root using PUTTY or something similar. Chỉ cần SSH vào máy phục vụ như là người chủ sử dụng PUTTY hay gì đó tương tự.

    Type the following Loại sau đây

    nano usr/local/apache/conf/modsec2/whitelist.conf nano usr/local/apache/conf/modsec2/whitelist.conf

    This will give you a flat screen editor that you can use to modify the file, just add the following line, once for each domain you wish to exempt. Điều này sẽ cung cấp cho bạn một căn hộ màn hình soạn thảo mà bạn có thể sử dụng để sửa đổi các tập tin, chỉ cần thêm dòng sau, một lần cho mỗi tên miền mà bạn muốn miễn.

    SecRule SERVER_NAME “example.com” phase:1,nolog,allow,ctl:ruleEngine=Off SecRule SERVER_NAME "example.com" giai đoạn: 1, nolog, cho phép, CTL: = ruleEngine Tắt

    no need to replace Server_name with your actual server name, only need to replace example.com with the domain. không cần phải thay thế Server_name với tên máy chủ thực sự của bạn, chỉ cần thay thế example.com với các tên miền.

    Apache will then need to be restarted. Apache sau đó sẽ cần phải được khởi động lại.

  2. Webagentur Webagentur
    November 30th, 2008 02:32 30 tháng mười một, 2008 02:32
    9 9

    Mich würde mal eher interessieren, ob man mit mod_security2 auch Mails verschicken lassen kann? Mich würde mal eher interessieren, OB man auch mit mod_security2 thư verschicken lassen kann?

  3. Fairlights Fairlights
    November 21st, 2008 15:25 21 tháng mười một, 2008 15:25
    8 8

    Awsome, slightly different in the apache i'm using on windows, i just commented out this line: Awsome, hơi khác nhau trong apache Tôi đang sử dụng trên cửa sổ, tôi chỉ nhận xét ra dòng này:

    #Include conf/Suite-extra/mod_security.conf Bao gồm # conf / phòng Suite-thêm / mod_security.conf

    Thanks now i can work on my intranet again owe you big time Thanks bây giờ tôi có thể làm việc trên Intranet của tôi lại nợ bạn lớn thời gian : D

  4. TSSE v4.3 problem - Bravo List TSSE v4.3 vấn đề - Danh sách Bravo
    November 12th, 2008 14:11 12 tháng mười một, 2008 14:11
    7 7

    [...] if i remeber right, this can be disabled from .htaccess Check the following links for further info: Remove and Uninstall or Disable ModSecurity (mod_security) My Digital Life How to disable mod_security in .htaccess file Disabling mod_security mod_security Guide and [...] [...] Nếu tôi nhớ đúng, điều này có thể bị vô hiệu hóa từ. Htaccess Kiểm tra các liên kết sau đây để biết thêm thông tin: Hủy bỏ và Vô hiệu hoá Gỡ bỏ hoặc ModSecurity (mod_security) Kỹ thuật số Cuộc sống của tôi như thế nào để vô hiệu hoá mod_security trong. Htaccess tập tin vô hiệu hoá mod_security mod_security và Hướng dẫn [...]

  5. Melinda Melinda
    October 26th, 2008 06:05 26 tháng mười, 2008 06:05
    6 6

    Just like Flanger, it doesn't work for me. Giống như Flanger, nó không hoạt động được cho tôi. Adding that two lines seem to block more and it doesn't resolve the error 500 error that was returned by ModSecurity. Thêm hai dòng mà có vẻ để chặn nhiều hơn và nó không giải quyết được lỗi 500 lỗi đã được trả lại của ModSecurity.

  6. Flanger Flanger
    October 20th, 2008 18:58 20 tháng mười, 2008 18:58
    5 5

    it doesnt work for me unfortunately nó không làm việc cho tôi tiếc là : (

    if I add these two lines to my .htaccess file to the root, nếu tôi thêm hai dòng cho tôi. htaccess vào tập tin gốc,
    the whole domain is blocked, else if I make .htaccess file toàn bộ tên miền bị chặn, người nào khác nếu tôi thực hiện. htaccess tập tin
    in custom directory and add these lines only that dir is locked tùy chỉnh trong thư mục và thêm những dòng chỉ có dir là bị khóa

    and server gives me Http error 500 internal server error… và máy chủ cung cấp cho tôi 500 Http lỗi nội bộ máy chủ lỗi ...

  7. Karlos Karlos
    June 29th, 2008 23:47 Tháng sáu 29, 2008 23:47
    4 4

    Cheers, just what I needed, worked first time Cheers, chỉ cần những gì tôi cần thiết, làm việc lần đầu tiên

  8. Neran Neran
    April 17th, 2008 17:13 17 tháng tư, 2008 17:13
    3 3

    Thanks alot! Thanks a lot! It works! Nó hoạt động!

  9. Adam Dempsey Adam Dempsey
    February 2nd, 2008 00:51 2 tháng hai, 2008 00:51
    2 2

    Exactly what I was looking for, thanks Chính xác những gì tôi đã được tìm kiếm, nhờ :)

  10. John John
    July 7th, 2007 00:16 7 tháng bảy, 2007 00:16
    1 1

    A BIG Thanks to You! Đáp BIG Nhờ Bạn!

    It really works! Nó thực sự làm việc! Thanks You! Cảm ơn bạn!

Leave a Reply Để lại một trả lời

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Bạn có thể sử dụng các thẻ:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Đăng ký nhận xét tính năng đã bị vô hiệu hoá. To receive notification of latest comments posted, subscribe to Để nhận được thông báo về ý kiến mới nhất được đăng, đăng ký với My Digital Life Comments RSS feed Cuộc sống kỹ thuật số Bình luận của tôi nguồn cấp dữ liệu RSS or hoặc register to receive đăng ký để nhận được new comments in daily email digest. Các ý kiến mới trong thư điện tử tiêu hàng ngày.
Custom Search

New Articles Bài viết mới

Incoming Search Terms for the Article Tìm kiếm các điều khoản cho các Điều

disable mod_security vô hiệu hoá mod_security - -- turn off mod_security tắt mod_security - -- disable MOD SECURITY Mod vô hiệu hóa an ninh - -- disable modsecurity vô hiệu hóa modsecurity - -- remove mod_security loại bỏ mod_security - -- disable mod_security htaccess vô hiệu hoá mod_security htaccess - -- how to disable mod_security làm thế nào để vô hiệu hoá mod_security - -- uninstall mod_security bỏ cài đặt mod_security - -- modsecurity disable modsecurity vô hiệu hoá - -- htaccess disable mod_security htaccess vô hiệu hoá mod_security - -- mod_security disable mod_security vô hiệu hoá - -- .htaccess mod_security . htaccess mod_security - -- turn off mod security tắt mod an ninh - -- mod_security disable htaccess vô hiệu hoá mod_security htaccess - -- whm mod_security whm mod_security - -- mod_security WHM mod_security WHM - -- apache disable mod_security apache vô hiệu hoá mod_security - -- mod_security turn off mod_security tắt - -- apache mod_security disable apache mod_security vô hiệu hoá - -- Apache mod_security Disabled Đình chỉ apache mod_security - -- mod_security joomla mod_security Joomla - -- Mod Security turn off Mod Bảo mật tắt - -- how to uninstall mod_security làm thế nào để bỏ cài đặt mod_security - -- how to turn off mod security làm thế nào để tắt mod an ninh - -- disable mod security .htaccess mod vô hiệu hóa bảo mật. htaccess - -- turn off modsecurity tắt modsecurity - -- disable modsec vô hiệu hóa modsec - -- disable ModSecurity apache vô hiệu hóa ModSecurity apache - -- how to disable mod security mod làm thế nào để vô hiệu hóa bảo mật - -- how to turn off mod_security làm thế nào để tắt mod_security - -- disable modsecurity .htaccess vô hiệu hóa modsecurity. htaccess - -- mod security disable mod bảo mật vô hiệu hoá - -- disable mod_security? vô hiệu hoá mod_security? - -- enable mod_security cho phép mod_security - -- mod-security htaccess mod-an ninh htaccess - -- remove modsecurity loại bỏ modsecurity - -- mod security whm mod an ninh whm - -- mod security htaccess mod an ninh htaccess - -- turn off modsec tắt modsec - -- htaccess mod_security htaccess mod_security - -- disabling mod_security vô hiệu hoá mod_security - -- desactivar mod_security de joomla desactivar mod_security của Joomla - -- uninstall modsecurity bỏ cài đặt modsecurity - -- .htaccess disable mod_security . htaccess vô hiệu hoá mod_security - -- disable mod_security cpanel vô hiệu hoá mod_security cPanel - -- enable mod security mod kích hoạt tính năng bảo mật - -- desactivar mod_security en cpanel desactivar mod_security vi cPanel - -- modsecurity rules in htaccess modsecurity quy định trong htaccess - -- disabling mod_security htaccess vô hiệu hoá mod_security htaccess - -- modsecurity + disable + .htaccess + + modsecurity vô hiệu hóa. htaccess - --