{"id":1167,"date":"2023-10-13T11:28:31","date_gmt":"2023-10-13T11:28:31","guid":{"rendered":"https:\/\/www.devopsfreelancer.com\/blog\/?p=1167"},"modified":"2023-10-13T11:45:06","modified_gmt":"2023-10-13T11:45:06","slug":"how-to-prevent-dos-attacks-against-apache","status":"publish","type":"post","link":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/","title":{"rendered":"How to prevent DoS attacks against Apache ?"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"315\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-prevent-d-dos-attack.png\" alt=\"\" class=\"wp-image-1183\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-prevent-d-dos-attack.png 600w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-prevent-d-dos-attack-300x158.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p>Preventing Denial of Service (DoS) attacks against Apache involves implementing various security measures to mitigate the impact of such attacks. While it&#8217;s challenging to entirely prevent all types of DoS attacks, you can take steps to minimize their impact. Here are some practical Linux security measures along with example commands for Apache:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. <strong>Install and Configure ModSecurity:<\/strong><\/h2>\n\n\n\n<p>ModSecurity is an open-source web application firewall (WAF) engine for Apache, IIS, and Nginx. It is used to protect web applications from a wide range of attacks, including:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SQL injection<\/li>\n\n\n\n<li>Cross-site scripting (XSS)<\/li>\n\n\n\n<li>Local file inclusion (LFI)<\/li>\n\n\n\n<li>Remote code execution (RCE)<\/li>\n\n\n\n<li>Denial-of-service (DoS) attacks<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"878\" height=\"434\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-33.png\" alt=\"\" class=\"wp-image-1185\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-33.png 878w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-33-300x148.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-33-768x380.png 768w\" sizes=\"auto, (max-width: 878px) 100vw, 878px\" \/><\/figure>\n\n\n\n<p>ModSecurity can be configured to block attacks, log suspicious activity, or both. It can also be used to implement security policies, such as limiting the number of concurrent requests from a single IP address.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">To install ModSecurity on Linux, you can use the following steps:<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Install the ModSecurity package for your Linux distribution.<\/li>\n\n\n\n<li>Configure ModSecurity. You can do this by editing the ModSecurity configuration file, which is typically located at&nbsp;<code>\/etc\/modsecurity\/modsecurity.conf<\/code>.<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install libapache2-mod-security2\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"704\" height=\"143\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-24.png\" alt=\"\" class=\"wp-image-1173\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-24.png 704w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-24-300x61.png 300w\" sizes=\"auto, (max-width: 704px) 100vw, 704px\" \/><\/figure>\n\n\n\n<p><strong>2nd step run below code<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2enmod security2\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"430\" height=\"95\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-25.png\" alt=\"\" class=\"wp-image-1174\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-25.png 430w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-25-300x66.png 300w\" sizes=\"auto, (max-width: 430px) 100vw, 430px\" \/><\/figure>\n\n\n\n<p><strong>3rd step <\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/apache2\/mods-enabled\/security2.conf\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;IfModule security2_module&gt;\n        # Default Debian dir for modsecurity's persistent data\n        SecDataDir \/var\/cache\/modsecurity\n        # Include all the *.conf files in \/etc\/modsecurity.\n        # Keeping your local configuration in that directory\n        # will allow for an easy upgrade of THIS file and\n        # make your life easier\n        IncludeOptional \/etc\/modsecurity\/*.conf\n        # Include OWASP ModSecurity CRS rules if installed\n        IncludeOptional \/usr\/share\/modsecurity-crs\/*.load\n&lt;\/IfModule&gt;\n\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-26-1024x231.png\" alt=\"\" class=\"wp-image-1175\" width=\"1053\" height=\"237\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-26-1024x231.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-26-300x68.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-26-768x174.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-26.png 1279w\" sizes=\"auto, (max-width: 1053px) 100vw, 1053px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-35.png\" alt=\"\" class=\"wp-image-1187\" width=\"735\" height=\"245\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-35.png 500w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-35-300x100.png 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/figure>\n\n\n\n<p><strong>4th step<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mv \/etc\/modsecurity\/modsecurity.conf-recommended \/etc\/modsecurity\/modsecurity.conf\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"90\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-27-1024x90.png\" alt=\"\" class=\"wp-image-1176\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-27-1024x90.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-27-300x26.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-27-768x67.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-27.png 1349w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>5th step<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/modsecurity\/modsecurity.conf\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"409\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-29-1024x409.png\" alt=\"\" class=\"wp-image-1178\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-29-1024x409.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-29-300x120.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-29-768x306.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-29.png 1341w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"550\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-30-1024x550.png\" alt=\"\" class=\"wp-image-1179\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-30-1024x550.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-30-300x161.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-30-768x412.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-30.png 1348w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Type below code<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ABCEFHJKZ<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"411\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-31-1024x411.png\" alt=\"\" class=\"wp-image-1180\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-31-1024x411.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-31-300x120.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-31-768x308.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-31.png 1341w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"523\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-32-1024x523.png\" alt=\"\" class=\"wp-image-1181\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-32-1024x523.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-32-300x153.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-32-768x393.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-32-440x226.png 440w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-32.png 1346w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"361\" src=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-34-1024x361.png\" alt=\"\" class=\"wp-image-1186\" srcset=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-34-1024x361.png 1024w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-34-300x106.png 300w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-34-768x271.png 768w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-34-1536x541.png 1536w, https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/image-34.png 1680w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now all configuration setup successfully&#8230;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Web Application Firewall (WAF):<\/strong>\n<ul class=\"wp-block-list\">\n<li>Implement a Web Application Firewall like ModSecurity with appropriate rule sets (e.g., OWASP Core Rule Set).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>IP Whitelisting and Blacklisting:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Use Apache <code>allow<\/code> and <code>deny<\/code> directives to whitelist trusted IP addresses and block malicious ones.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Load Balancing and Failover:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Distribute traffic across multiple servers using load balancing.<\/li>\n\n\n\n<li>Implement failover mechanisms to switch to backup servers if an attack is detected.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Cloud-Based DDoS Protection:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Consider using cloud-based DDoS protection services such as Cloudflare or Akamai.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Monitoring and Logging:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Regularly monitor Apache logs for unusual patterns or spikes in traffic.<\/li>\n\n\n\n<li>Set up alerting mechanisms to notify administrators of potential attacks.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Implement Connection Limits:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Use Apache directives like <code>MaxClients<\/code>, <code>MaxRequestsPerChild<\/code>, and <code>MaxConnectionsPerChild<\/code> to control the number of connections.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Update and Patch:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Keep Apache and related software up to date with the latest security patches.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Educate Users:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Train users and administrators on recognizing and reporting potential DoS attacks.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Firewall Configuration:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Use server-level firewalls or external firewalls to filter and control incoming traffic.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>Always tailor these measures to your specific environment, and regularly review and update your security measures to adapt to evolving threats. Testing in a controlled environment is crucial before applying changes to production.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Preventing Denial of Service (DoS) attacks against Apache involves implementing various security measures to mitigate the impact of such attacks. While it&#8217;s challenging to entirely prevent all&#8230; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[480],"tags":[485,484,483,28,481],"class_list":["post-1167","post","type-post","status-publish","format-standard","hentry","category-wsl","tag-apache","tag-dos-attacks","tag-firewalls","tag-linux","tag-wsl"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to prevent DoS attacks against Apache ? - DevOps Freelancer<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to prevent DoS attacks against Apache ? - DevOps Freelancer\" \/>\n<meta property=\"og:description\" content=\"Preventing Denial of Service (DoS) attacks against Apache involves implementing various security measures to mitigate the impact of such attacks. While it&#8217;s challenging to entirely prevent all...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/\" \/>\n<meta property=\"og:site_name\" content=\"DevOps Freelancer\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/amitsthakurs\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-13T11:28:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-13T11:45:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-prevent-d-dos-attack.png\" \/>\n<meta name=\"author\" content=\"Amit Kumar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/amits_thakurs\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Amit Kumar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-prevent-dos-attacks-against-apache\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-prevent-dos-attacks-against-apache\\\/\"},\"author\":{\"name\":\"Amit Kumar\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#\\\/schema\\\/person\\\/22ed4bd82dc04200a2ca541b3e35fc5b\"},\"headline\":\"How to prevent DoS attacks against Apache ?\",\"datePublished\":\"2023-10-13T11:28:31+00:00\",\"dateModified\":\"2023-10-13T11:45:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-prevent-dos-attacks-against-apache\\\/\"},\"wordCount\":389,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-prevent-dos-attacks-against-apache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/how-to-prevent-d-dos-attack.png\",\"keywords\":[\"apache\",\"DoS attacks\",\"firewalls\",\"linux\",\"WSL\"],\"articleSection\":[\"WSL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-prevent-dos-attacks-against-apache\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-prevent-dos-attacks-against-apache\\\/\",\"url\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-prevent-dos-attacks-against-apache\\\/\",\"name\":\"How to prevent DoS attacks against Apache ? - DevOps Freelancer\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-prevent-dos-attacks-against-apache\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-prevent-dos-attacks-against-apache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/how-to-prevent-d-dos-attack.png\",\"datePublished\":\"2023-10-13T11:28:31+00:00\",\"dateModified\":\"2023-10-13T11:45:06+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#\\\/schema\\\/person\\\/22ed4bd82dc04200a2ca541b3e35fc5b\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-prevent-dos-attacks-against-apache\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-prevent-dos-attacks-against-apache\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-prevent-dos-attacks-against-apache\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/how-to-prevent-d-dos-attack.png\",\"contentUrl\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/how-to-prevent-d-dos-attack.png\",\"width\":600,\"height\":315},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/how-to-prevent-dos-attacks-against-apache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to prevent DoS attacks against Apache ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/\",\"name\":\"DevOps Freelancer\",\"description\":\"We provide DevOps | SRE | DevSecOps | MLOps Freelancing\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/#\\\/schema\\\/person\\\/22ed4bd82dc04200a2ca541b3e35fc5b\",\"name\":\"Amit Kumar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g\",\"caption\":\"Amit Kumar\"},\"description\":\"Hi I am Amit Kumar Thakur Experienced as s Software Developer with a demonstrated history of working in the information technology and services industry. Skilled in HTML, CSS, Bootstrap4, PHP, Laravel-9 , REST API,FB API,Google API, Youtube Api, Bitbucket,Github,Linux and jQuery. Strong engineering professional focused in Computer\\\/Information Technology Administration and Management. Currently my profile is to Software Developer, analyze the requirement, creating frame for web application, coding and maintenance.\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/amitsthakurs\\\/\",\"https:\\\/\\\/www.instagram.com\\\/amits_thakurs\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/amits-thakurs\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/amits_thakurs\"],\"url\":\"https:\\\/\\\/www.devopsfreelancer.com\\\/blog\\\/author\\\/amit\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to prevent DoS attacks against Apache ? - DevOps Freelancer","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/","og_locale":"en_US","og_type":"article","og_title":"How to prevent DoS attacks against Apache ? - DevOps Freelancer","og_description":"Preventing Denial of Service (DoS) attacks against Apache involves implementing various security measures to mitigate the impact of such attacks. While it&#8217;s challenging to entirely prevent all...","og_url":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/","og_site_name":"DevOps Freelancer","article_author":"https:\/\/www.facebook.com\/amitsthakurs\/","article_published_time":"2023-10-13T11:28:31+00:00","article_modified_time":"2023-10-13T11:45:06+00:00","og_image":[{"url":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-prevent-d-dos-attack.png","type":"","width":"","height":""}],"author":"Amit Kumar","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/amits_thakurs","twitter_misc":{"Written by":"Amit Kumar","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/#article","isPartOf":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/"},"author":{"name":"Amit Kumar","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b"},"headline":"How to prevent DoS attacks against Apache ?","datePublished":"2023-10-13T11:28:31+00:00","dateModified":"2023-10-13T11:45:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/"},"wordCount":389,"commentCount":0,"image":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-prevent-d-dos-attack.png","keywords":["apache","DoS attacks","firewalls","linux","WSL"],"articleSection":["WSL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/","url":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/","name":"How to prevent DoS attacks against Apache ? - DevOps Freelancer","isPartOf":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/#primaryimage"},"image":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/#primaryimage"},"thumbnailUrl":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-prevent-d-dos-attack.png","datePublished":"2023-10-13T11:28:31+00:00","dateModified":"2023-10-13T11:45:06+00:00","author":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b"},"breadcrumb":{"@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/#primaryimage","url":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-prevent-d-dos-attack.png","contentUrl":"https:\/\/www.devopsfreelancer.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-prevent-d-dos-attack.png","width":600,"height":315},{"@type":"BreadcrumbList","@id":"https:\/\/www.devopsfreelancer.com\/blog\/how-to-prevent-dos-attacks-against-apache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.devopsfreelancer.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to prevent DoS attacks against Apache ?"}]},{"@type":"WebSite","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#website","url":"https:\/\/www.devopsfreelancer.com\/blog\/","name":"DevOps Freelancer","description":"We provide DevOps | SRE | DevSecOps | MLOps Freelancing","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.devopsfreelancer.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.devopsfreelancer.com\/blog\/#\/schema\/person\/22ed4bd82dc04200a2ca541b3e35fc5b","name":"Amit Kumar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d76fb4d0f15f7a458f1fd91063b44fbb7e7eb9e724b1c465d885054c2540250f?s=96&d=mm&r=g","caption":"Amit Kumar"},"description":"Hi I am Amit Kumar Thakur Experienced as s Software Developer with a demonstrated history of working in the information technology and services industry. Skilled in HTML, CSS, Bootstrap4, PHP, Laravel-9 , REST API,FB API,Google API, Youtube Api, Bitbucket,Github,Linux and jQuery. Strong engineering professional focused in Computer\/Information Technology Administration and Management. Currently my profile is to Software Developer, analyze the requirement, creating frame for web application, coding and maintenance.","sameAs":["https:\/\/www.facebook.com\/amitsthakurs\/","https:\/\/www.instagram.com\/amits_thakurs\/","https:\/\/www.linkedin.com\/in\/amits-thakurs\/","https:\/\/x.com\/https:\/\/twitter.com\/amits_thakurs"],"url":"https:\/\/www.devopsfreelancer.com\/blog\/author\/amit\/"}]}},"_links":{"self":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/comments?post=1167"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1167\/revisions"}],"predecessor-version":[{"id":1189,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/1167\/revisions\/1189"}],"wp:attachment":[{"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/media?parent=1167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/categories?post=1167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsfreelancer.com\/blog\/wp-json\/wp\/v2\/tags?post=1167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}