Remove and Uninstall or Disable ModSecurity (mod_security) Noņemiet un Uninstall vai Disable ModSecurity (mod_security)
ModSecurity is an open source embeddable web application firewall, or intrusion detection and prevention engine for web applications. ModSecurity ir open source embeddable tīmekļa lietojumprogrammu ugunsmūri, vai ielaušanās atklāšanas un novēršanas motora tīmekļa lietojumprogrammas. 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 sniedz aizsardzību no dažādiem uzbrukumiem interneta lietojumprogrammas un ļauj HTTP satiksmes uzraudzības un reālā laika analīze bez izmaiņām infrastruktūra, ar darbības kā Apache Web servera modulis mod_security vai savrupajam un tādējādi palielināt tīmekļa lietojumprogrammu drošību. 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. Tomēr, misconfigured vai pārlieku stingrs noteikums komplekti, ModSecurity var radīt savu interneta lapu, lai atgrieztos dažādas kļūdas, piemēram, HTTP 403 Aizliegts kļūda vai access denied kļūda, login problēmas, vai HTTP 412 priekšnosacījums Neizdevās kļūdu, vai HTTP 406 nav pieņemama kļūdas un citu nepatiesu pozitīvu simptomi .
To make matter worse, the configuration of ModSecurity rules and filters have to be done manually. Lai lietu vēl ļaunāk, konfigurācijai ModSecurity noteikumiem un filtri ir jāveic manuāli. 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. Lai gan ir bezmaksas iepriekšnoteikta sertificētu noteikums, kas, ko var izmantot ar ModSecurity no kastē, tomēr likums nosaka, var nav piemērots katrai videi un var būt pretrunā ar darbību, tīmekļa vietnes vai blogus, un pielāgot un groza noteikumus var būt pārāk sarežģītu vai sarežģīti dažiem lietotājiem. And for some websites that hosted on shared hosting service, the mod_security may be enable by default without options. Un dažas tīmekļa vietnes, kas izvietots uz kopīgām hosting pakalpojumu, mod_security var ļaut pēc noklusējuma bez iespējas. So in this case, the best solution or workaround for mod security related issues is to disable mod_security filtering and rules. Tātad šajā gadījumā ir labākais risinājums vai PROFILAKSE par mod drošību saistītiem jautājumiem ir atslēgt mod_security filtrēšanu un noteikumiem.
If you're using Apache web server (which mostly do), mod_security can be disabled by adding a specific in .htaccess file. Ja jūs izmantojat Apache Web serveri (kuri pārsvarā do), mod_security var invalīdiem, pievienojot īpašu in. Htaccess failu. 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: Atrodiet. Htaccess failu Apache Web root direktorijā (public_html vai / var / www / vai citi), ja tā nav, izveidot jaunu failu nosaukumu. Htaccess, un pievienot šādu kodu:
SecFilterEngine Off SecFilterEngine Off
SecFilterScanPOST Off SecFilterScanPOST Off
The above entries in the .htaccess will disable the ModSecurity (mod_security) module for the domain. Iepriekš darbus. Htaccess būs atspējot ModSecurity (mod_security) moduli par domēna.
Uninstallation of ModSecurity (mod_security) from Apache module Atinstalēšanu no ModSecurity (mod_security) no Apache modulis
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. Vieglākais veids, lai novērstu un atinstalēšanas mod_security ir komentāru vai dzēst related mod_security ierakstus no httpd.conf Apache konfigurācijas failu. The lines that should be removed include: Rindas, kas būtu jānovērš ietver:
AddModule mod_security.c AddModule mod_security.c
LoadModule security_module modules/mod_security.so LoadModule security_module modules / 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 Include "/ usr / local / apache / conf / modsec.conf" Šī līnija var būt dažādi atkarībā no tā, kas variantu Linux vai Unix jums izmantot, un uzstādīšanas vieta
Save the httpd.conf and restart the Apache. Save the httpd.conf un restart Apache. ModSecurity will not be loaded and as if uninstalled. ModSecurity netiks ielādēta un kā tad, ja atinstalēta.
If you're using WebHost Manager (WHM), uninstallation is even simpler. Ja jūs izmantojat WebHost Manager (WHM), atinstalēšanu ir pat vienkāršāka. Just scroll to cPanel section, and click on Addon Modules. Just ritiniet cPanel iedaļā, un noklikšķiniet uz Addon Modules. Then scroll to module named modsecurity. Tad ritiniet modulis nosaukts modsecurity. It should be checked Install and Keep Updated currently. Tas būtu jāpārbauda Instalējiet un regulāri atjauno šobrīd. Just click on Uninstall to remove the mod security feature from Apache web server. Vienkārši noklikšķiniet uz Atinstalēt noņemt mod drošības elementu no Apache Web serveri.
IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: Šī lapa ir mašīna tulkoto un ar nosacījumu ", kas ir" bez garantijas. Machine translation may be difficult to understand. Machine translation var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.
Related Articles Saistītie raksti
- How to Disable (Remove and Uninstall) Windows Defender in Vista Kā Disable (Noņemiet un Atinstalēt) Windows Defender in Vista
- How to Disable (Uninstall and Remove) Windows Media Center in Vista Kā Disable (Uninstall un Remove) Windows Media Center in Vista
- How to Remove and Disable IE8 (Uninstall Internet Explorer 8) from Windows 7 Kā noņemt un Disable IE8 (Uninstall Internet Explorer 8) no Windows 7
- Disable, Remove and Uninstall U3 Launchpad Disable, Noņemiet un Atinstalēt U3 Launchpad
- Disable, Uninstall and Remove Skype Add-On Call This Phone Number on Web Page and Toolbar Plugin Menu in IE Disable, Uninstall un Noņemt Skype Add-On Call šo tālruni interneta lapas un Toolbar Plugin Izvēlne IE
- Workaround to Manually Uninstall, Remove or Delete Firefox Addon With Add-Ons Uninstall Button Disabled PROFILAKSE Lai Manuāli Uninstall Noņemt vai Dzēst Firefox Addon Ar Add-Ons Atinstalēt Button Disabled
- Hack to Remove/Uninstall Symantec Norton Antivirus (SAV) Client without Password Hack, lai novērstu / Uninstall Symantec Norton Antivirus (SAV) Client bez Parole
- Improve Apache Web Server Security: Use ServerTokens and ServerSignature to Disable Header Uzlabot Apache Web servera drošības Izmantojiet ServerTokens un ServerSignature uz Disable Header
- Uninstall and Remove Multiple Database Instances of Microsoft SQL Server 2005 Uninstall un Remove Multiple Database Gadījumi Microsoft SQL Server 2005
- How to Remove and Uninstall Security Toolbar 7.1 Infection with Free Tool Kā noņemt un Atinstalēt Security Toolbar 7,1 Infekcija ar bezmaksas rīks










































May 6th, 2009 15:30 6 maijs, 2009 15:30
I had this issue and apparently my host had a specific block in place that prevented the .htaccess modification from taking effect. Man bija šī problēma un acīmredzot mana uzņēmēja bija īpašs bloks vieta, kas neļauj. Htaccess modifikācija no spēkā.
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. Risinājums, lai novērstu modulis var nebūt laba ideja, jo tā ir servera mēroga pārmaiņas, ir acīmredzot ir whitelist fails, ka jūs varat mainīt, lai ļautu atsevišķās jomās tiek atbrīvoti no nodokļa.
Just SSH into the server as root using PUTTY or something similar. Just SSH uz servera, kā saknes, izmantojot ŠPAKTEĻTEPES, TEPES vai kaut kas līdzīgs.
Type the following Tips šādu
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. Tas dos Jums plakanā ekrāna redaktors, ko var izmantot, lai mainītu failu, vienkārši pievienojiet šādu līnijas, vienu reizi domēna vēlaties atbrīvot.
SecRule SERVER_NAME “example.com” phase:1,nolog,allow,ctl:ruleEngine=Off SecRule SERVER_NAME "example.com" posma: 1, nolog atļaut ctl: ruleEngine = Off
no need to replace Server_name with your actual server name, only need to replace example.com with the domain. nav nepieciešams, lai aizstātu Server_name ar jūsu faktisko servera nosaukumu, tikai nepieciešamība aizstāt example.com ar domēnu.
Apache will then need to be restarted. Apache tad jābūt atsākt.
November 30th, 2008 02:32 Novembris 30, 2008 02:32
Mich würde mal eher interessieren, ob man mit mod_security2 auch Mails verschicken lassen kann? Mich würde mal eher interessieren, ob man mit mod_security2 auch pasta verschicken Lassen kann?
November 21st, 2008 15:25 Novembris 21, 2008 15:25
Awsome, slightly different in the apache i'm using on windows, i just commented out this line: Awsome, kas ir nedaudz citāda, apache Es izmantojot logi, i tikai komentēja šo pozīcija:
#Include conf/Suite-extra/mod_security.conf # Include conf / Suite-ārējs / mod_security.conf
Thanks now i can work on my intranet again owe you big time Paldies tagad es varētu strādāt ar manu intraneta atkal parādā jums liels laiks
November 12th, 2008 14:11 Novembris 12, 2008 14:11
[...] 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 [...] [...], Ja es atceros pareizi, tas var tikt izslēgti no. Htaccess Pārbaudiet pēc saites uz papildu info: Noņemiet un Uninstall vai Disable ModSecurity (mod_security) My Digital Life Kā atslēgt mod_security in. Htaccess failu atspējošanas mod_security mod_security rokasgrāmatā un [...]
October 26th, 2008 06:05 Oktobris 26, 2008 06:05
Just like Flanger, it doesn't work for me. Tāpat kā Flanger, tas nedarbojas man. Adding that two lines seem to block more and it doesn't resolve the error 500 error that was returned by ModSecurity. Piebilstot, ka divas rindas, šķiet, bloķēt vairāk un tas nav atrisināt kļūda 500 kļūdas, kas tika atpakaļ ModSecurity.
October 20th, 2008 18:58 Oktobris 20, 2008 18:58
it doesnt work for me unfortunately it doesn't darbs man diemžēl
if I add these two lines to my .htaccess file to the root, ja es pievienotu šīm divām līnijām, lai mans. htaccess failu, lai saknes,
the whole domain is blocked, else if I make .htaccess file visu sfēra ir bloķēts, ko citu, ja man darīt. htaccess failu
in custom directory and add these lines only that dir is locked in custom katalogs un pievienot šo līniju tikai to, ka dir ir slēgts
and server gives me Http error 500 internal server error… un servera dod man Http kļūda 500 iekšējā servera kļūda ...
June 29th, 2008 23:47 Jūnijs 29, 2008 23:47
Cheers, just what I needed, worked first time Cheers, tikai kas man ir nepieciešams, strādāja pirmo reizi
April 17th, 2008 17:13 Aprīlis 17, 2008 17:13
Thanks alot! Thanks a lot! It works! It works!
February 2nd, 2008 00:51 Februāris 2, 2008 00:51
Exactly what I was looking for, thanks Tieši to, ko es meklēju, pateicoties
July 7th, 2007 00:16 Jūlijs 7, 2007 00:16
A BIG Thanks to You! A BIG Paldies Jums!
It really works! Tas tiešām strādā! Thanks You! Paldies Jums!