וורדפרס אבטחה: איך לחסום גישה למדינות שלמות

חסימת IP של מדינות שלמות

כולנו עדים לגל המתקפות החוזרות והנשנות על אתרים ישראליים! למרות שדרוגי אבטחה משמעותיים של וורדפרס בשנה האחרונה אנחנו עדיין חשופים וזאת בשל העובדה שאנו משתמשים בתוספים… אני תמיד ממליץ לכתוב קוד נקי שעדיף פעמים רבות על תוספים.

אם אתם מבינים עניין ישנם הרבה פתרונות לדברים שאתם רוצים לעשות באתר וורדפרס שלכם במאמר שכתבנו לאחרונה בשם אוסף הסניפטים הגדול של וורדפרס ואנו נמשיך לעדכן אותו מעת לעת כדי לשפר את הפונקציונליות שיש לנו במאמץ מינימלי (אז תשמרו לכם במועדפים וגם אם אפשר פרגנו לנו עם +1 או LIKE).

חוזרים לנושא – אבטחה לוורדפרס

ראשית ולפני שאני נוגע בנושא המדריך הקצרצר הזה אני רוצה לחלוק אתכם רשימה של מאמרים שכבר נוגעים בנושאי אבטחה שונים של וורדפרס לאחר פריצה ולפני פריצה וסתם כדי להבין יותר איך להגן על האתר שלכם

 

חוסמים גישה לאתר וורדפרס למדינות עוינות

אחת הגישות הטובות ביותר אשר מקשות על האקרים ופעמים רבות פשוט מונעות מהן לראות שיש אתר בכלל ששווה לפרוץ עליו (אלא אם אתם גדולים כמו YNET) הוא לחסום לגמרי את הגישה לגולשים ממדינות כמו עירק, איראן, ערב הסעודית, ואפילו מצריים ליתר בטחון. הקוד הבא עושה בדיוק את זה.

 

שימו לב נכון שאנחנו משתמשים בקוד זה בדיוק אבל אנו מבקשים בכל לשון של בקשה שלא תתעצלו ותגבו את הקובץ .htaccess לפני שאתם שמים בו את הקוד שאנו עומדים לחלוק אתכם. בצורה כזאת אם תתקלו בבעיה כלשהיא תוכלו פשוט לשחזר אותו על ידי העלאת הקובץ המקורי.

 

קוד שחוסם גישה של גולשים ממדינות עוינות לאתר שלכם +

  • מה: קוד שחוסם גישה לגולשים מאירן, עירק, ערב הסעודית ומצריים
  • איפה: מתחת לכל הקוד הקיים בקובץ .htaccess

 

[php] <Limit GET POST> order allow,deny # Country: AFGHANISTAN # ISO Code: AF # Total Networks: 34 # Total Subnets: 102,720 deny from 27.116.56.0/22 deny from 58.147.128.0/19 deny from 61.5.192.0/20 deny from 103.5.172.0/22 deny from 103.5.196.0/23 deny from 103.23.36.0/22 deny from 103.23.247.0/24 deny from 103.28.132.0/22 deny from 103.247.198.0/24 deny from 111.125.152.0/22 deny from 111.125.156.0/22 deny from 111.223.244.0/22 deny from 117.55.192.0/20 deny from 117.104.224.0/22 deny from 117.104.228.0/22 deny from 119.59.80.0/22 deny from 119.59.84.0/22 deny from 121.100.48.0/22 deny from 121.100.52.0/22 deny from 121.127.32.0/19 deny from 124.199.112.0/20 deny from 125.213.192.0/19 deny from 175.106.32.0/19 deny from 180.94.64.0/19 deny from 180.222.136.0/22 deny from 180.222.140.0/22 deny from 182.50.176.0/20 deny from 193.201.151.64/26 deny from 202.56.176.0/20 deny from 202.86.16.0/20 deny from 203.174.27.0/24 deny from 203.215.32.0/20 deny from 210.80.0.0/19 deny from 210.80.32.0/19 ## Country: BAHRAIN # ISO Code: BH # Total Networks: 59 # Total Subnets: 465,920 deny from 37.131.0.0/17 deny from 46.23.16.0/20 deny from 46.42.64.0/18 deny from 46.184.128.0/17 deny from 46.235.208.0/22 deny from 46.235.212.0/22 deny from 62.209.0.0/19 deny from 77.69.128.0/17 deny from 77.92.160.0/19 deny from 78.110.64.0/20 deny from 79.99.88.0/22 deny from 79.99.92.0/22 deny from 79.142.176.0/20 deny from 79.171.240.0/22 deny from 79.171.244.0/22 deny from 80.88.240.0/20 deny from 80.95.208.0/20 deny from 80.241.144.0/20 deny from 81.22.16.0/20 deny from 82.194.32.0/19 deny from 83.136.56.0/22 deny from 83.136.60.0/22 deny from 84.255.128.0/18 deny from 85.158.128.0/22 deny from 85.158.132.0/22 deny from 87.236.48.0/22 deny from 87.236.52.0/22 deny from 87.236.136.0/22 deny from 87.236.140.0/22 deny from 87.237.192.0/22 deny from 87.237.196.0/22 deny from 87.252.96.0/19 deny from 88.201.0.0/17 deny from 89.28.152.0/22 deny from 89.28.156.0/22 deny from 89.31.192.0/22 deny from 89.31.196.0/22 deny from 89.148.0.0/18 deny from 89.190.128.0/19 deny from 93.95.24.0/22 deny from 93.95.28.0/22 deny from 93.188.192.0/22 deny from 93.188.196.0/22 deny from 93.191.128.0/22 deny from 93.191.132.0/22 deny from 94.76.0.0/18 deny from 94.79.192.0/18 deny from 95.84.64.0/18 deny from 109.63.0.0/17 deny from 109.161.128.0/17 deny from 178.132.32.0/20 deny from 178.237.48.0/20 deny from 188.116.192.0/18 deny from 188.137.128.0/17 deny from 193.188.12.0/23 deny from 193.188.96.0/19 deny from 195.82.138.0/23 deny from 217.17.224.0/20 deny from 217.17.240.0/20 ## Country: EGYPT # ISO Code: EG # Total Networks: 145 # Total Subnets: 8,454,144 deny from 41.32.0.0/12 deny from 41.64.0.0/16 deny from 41.65.0.0/16 deny from 41.67.64.0/18 deny from 41.68.0.0/16 deny from 41.69.0.0/16 deny from 41.72.64.0/19 deny from 41.77.136.0/22 deny from 41.77.140.0/22 deny from 41.77.248.0/22 deny from 41.77.252.0/22 deny from 41.78.20.0/22 deny from 41.78.60.0/22 deny from 41.78.148.0/22 deny from 41.79.208.0/22 deny from 41.88.0.0/16 deny from 41.91.0.0/16 deny from 41.128.0.0/14 deny from 41.152.0.0/16 deny from 41.153.0.0/16 deny from 41.155.128.0/17 deny from 41.176.0.0/16 deny from 41.178.0.0/16 deny from 41.179.0.0/16 deny from 41.187.0.0/16 deny from 41.189.160.0/19 deny from 41.190.248.0/22 deny from 41.191.0.0/18 deny from 41.191.80.0/22 deny from 41.196.0.0/16 deny from 41.199.0.0/16 deny from 41.205.96.0/19 deny from 41.206.128.0/19 deny from 41.209.192.0/18 deny from 41.215.240.0/22 deny from 41.217.160.0/19 deny from 41.217.224.0/22 deny from 41.217.228.0/22 deny from 41.218.128.0/18 deny from 41.221.128.0/20 deny from 41.222.128.0/22 deny from 41.222.132.0/22 deny from 41.222.168.0/22 deny from 41.222.172.0/22 deny from 41.223.20.0/22 deny from 41.223.52.0/22 deny from 41.223.196.0/22 deny from 41.223.240.0/22 deny from 41.232.0.0/13 deny from 62.12.96.0/19 deny from 62.68.224.0/19 deny from 62.114.0.0/16 deny from 62.117.32.0/19 deny from 62.135.0.0/17 deny from 62.139.0.0/16 deny from 62.140.64.0/18 deny from 62.193.64.0/18 deny from 62.240.96.0/19 deny from 62.241.128.0/19 deny from 80.75.160.0/22 deny from 80.75.164.0/22 deny from 80.75.168.0/22 deny from 80.75.172.0/22 deny from 80.75.176.0/22 deny from 80.75.180.0/22 deny from 80.75.184.0/22 deny from 80.75.188.0/22 deny from 81.4.0.0/18 deny from 81.10.0.0/17 deny from 81.21.96.0/20 deny from 81.29.96.0/20 deny from 82.129.128.0/17 deny from 82.201.128.0/17 deny from 84.36.0.0/16 deny from 84.205.96.0/19 deny from 84.233.0.0/17 deny from 163.121.0.0/16 deny from 192.101.142.0/24 deny from 193.19.232.0/22 deny from 193.227.0.0/18 deny from 193.227.128.0/24 deny from 194.79.96.0/19 deny from 195.43.0.0/19 deny from 195.234.168.0/24 deny from 195.234.185.0/24 deny from 195.234.252.0/22 deny from 195.246.32.0/19 deny from 196.1.119.0/24 deny from 196.1.143.0/24 deny from 196.2.192.0/19 deny from 196.12.11.0/24 deny from 196.20.32.0/19 deny from 196.22.5.0/24 deny from 196.22.7.0/24 deny from 196.22.130.0/24 deny from 196.32.228.0/23 deny from 196.43.198.0/24 deny from 196.43.201.0/24 deny from 196.43.219.0/24 deny from 196.46.17.0/24 deny from 196.46.22.0/24 deny from 196.46.24.0/24 deny from 196.46.26.0/24 deny from 196.46.29.0/24 deny from 196.46.188.0/22 deny from 196.201.3.0/24 deny from 196.201.24.0/22 deny from 196.201.28.0/22 deny from 196.201.240.0/22 deny from 196.201.244.0/22 deny from 196.202.0.0/17 deny from 196.204.0.0/16 deny from 196.205.0.0/16 deny from 196.216.140.0/22 deny from 196.216.240.0/23 deny from 196.216.246.0/24 deny from 196.216.252.0/24 deny from 196.218.0.0/16 deny from 196.219.0.0/16 deny from 196.221.0.0/16 deny from 196.223.7.0/24 deny from 196.223.16.0/23 deny from 197.32.0.0/11 deny from 197.120.0.0/13 deny from 197.132.0.0/14 deny from 197.160.0.0/13 deny from 197.192.0.0/13 deny from 197.222.0.0/16 deny from 197.223.0.0/16 deny from 197.246.0.0/16 deny from 212.12.224.0/19 deny from 212.103.160.0/19 deny from 212.122.224.0/19 deny from 213.131.64.0/19 deny from 213.152.64.0/19 deny from 213.154.32.0/19 deny from 213.158.160.0/19 deny from 213.181.224.0/19 deny from 213.212.192.0/18 deny from 213.247.0.0/19 deny from 213.255.128.0/19 deny from 217.20.224.0/20 deny from 217.29.128.0/20 deny from 217.52.0.0/14 deny from 217.139.0.0/16 ## Country: IRAN, ISLAMIC REPUBLIC OF # ISO Code: IR # Total Networks: 343 # Total Subnets: 5,239,808 deny from 2.144.0.0/14 deny from 2.176.0.0/12 deny from 31.7.64.0/18 deny from 31.7.128.0/20 deny from 31.24.200.0/22 deny from 31.24.204.0/22 deny from 31.24.232.0/22 deny from 31.24.236.0/22 deny from 31.25.88.0/22 deny from 31.25.92.0/22 deny from 31.25.104.0/22 deny from 31.25.108.0/22 deny from 31.25.128.0/22 deny from 31.25.132.0/22 deny from 31.25.232.0/22 deny from 31.25.236.0/22 deny from 31.29.32.0/19 deny from 31.40.0.0/22 deny from 31.40.4.0/22 deny from 31.47.32.0/19 deny from 31.56.0.0/14 deny from 31.130.176.0/20 deny from 31.170.48.0/20 deny from 31.171.216.0/22 deny from 31.171.220.0/22 deny from 31.184.128.0/18 deny from 31.193.112.0/22 deny from 31.193.116.0/22 deny from 31.193.144.0/20 deny from 31.217.208.0/22 deny from 31.217.212.0/22 deny from 37.9.248.0/22 deny from 37.9.252.0/22 deny from 37.19.80.0/20 deny from 37.32.0.0/19 deny from 37.32.32.0/22 deny from 37.32.36.0/22 deny from 37.32.40.0/22 deny from 37.32.44.0/22 deny from 37.32.112.0/20 deny from 37.44.56.0/22 deny from 37.44.60.0/22 deny from 37.49.144.0/22 deny from 37.49.148.0/22 deny from 37.63.128.0/17 deny from 37.75.240.0/22 deny from 37.75.244.0/22 deny from 37.98.0.0/17 deny from 37.98.200.0/22 deny from 37.98.204.0/22 deny from 37.114.192.0/18 deny from 37.123.192.0/22 deny from 37.123.196.0/22 deny from 37.128.240.0/20 deny from 37.130.200.0/21 deny from 37.137.0.0/16 deny from 37.143.144.0/21 deny from 46.18.248.0/22 deny from 46.18.252.0/22 deny from 46.21.80.0/20 deny from 46.28.72.0/22 deny from 46.28.76.0/22 deny from 46.32.0.0/19 deny from 46.34.96.0/19 deny from 46.34.160.0/19 deny from 46.36.96.0/19 deny from 46.38.128.0/19 deny from 46.100.0.0/16 deny from 46.143.0.0/16 deny from 46.148.32.0/20 deny from 46.164.64.0/18 deny from 46.183.184.0/22 deny from 46.183.188.0/22 deny from 46.209.0.0/16 deny from 46.224.0.0/16 deny from 46.225.0.0/16 deny from 46.245.0.0/17 deny from 46.248.32.0/19 deny from 46.249.96.0/19 deny from 46.251.160.0/19 deny from 46.255.216.0/22 deny from 46.255.220.0/22 deny from 62.60.128.0/17 deny from 62.102.128.0/20 deny from 62.193.0.0/19 deny from 62.220.96.0/19 deny from 77.36.128.0/17 deny from 77.77.64.0/18 deny from 77.104.64.0/18 deny from 77.237.64.0/19 deny from 77.237.160.0/19 deny from 77.245.224.0/20 deny from 78.38.0.0/16 deny from 78.39.0.0/16 deny from 78.109.192.0/20 deny from 78.110.112.0/20 deny from 78.111.0.0/20 deny from 78.154.32.0/19 deny from 78.157.32.0/19 deny from 78.158.160.0/19 deny from 79.127.0.0/17 deny from 79.132.192.0/19 deny from 79.170.144.0/22 deny from 79.170.148.0/22 deny from 79.175.128.0/18 deny from 80.66.176.0/20 deny from 80.69.240.0/20 deny from 80.71.112.0/20 deny from 80.75.0.0/20 deny from 80.191.0.0/16 deny from 80.242.0.0/20 deny from 80.253.128.0/20 deny from 80.253.144.0/20 deny from 81.12.0.0/17 deny from 81.28.32.0/20 deny from 81.28.48.0/20 deny from 81.29.240.0/20 deny from 81.31.160.0/20 deny from 81.31.176.0/20 deny from 81.31.224.0/19 deny from 81.90.144.0/20 deny from 81.91.128.0/20 deny from 81.91.144.0/20 deny from 81.163.0.0/22 deny from 81.163.4.0/22 deny from 82.99.192.0/18 deny from 82.115.0.0/19 deny from 83.147.192.0/18 deny from 84.47.192.0/18 deny from 84.241.0.0/18 deny from 85.9.64.0/18 deny from 85.15.0.0/18 deny from 85.133.128.0/17 deny from 85.185.0.0/16 deny from 85.198.0.0/18 deny from 86.57.0.0/17 deny from 86.109.32.0/19 deny from 87.107.0.0/16 deny from 87.236.208.0/22 deny from 87.236.212.0/22 deny from 87.247.160.0/19 deny from 87.248.128.0/19 deny from 88.135.32.0/20 deny from 89.144.128.0/18 deny from 89.165.0.0/17 deny from 89.184.192.0/19 deny from 89.221.80.0/20 deny from 89.235.64.0/18 deny from 91.98.0.0/16 deny from 91.99.0.0/16 deny from 91.184.64.0/19 deny from 91.186.192.0/19 deny from 91.206.122.0/23 deny from 91.207.138.0/23 deny from 91.208.165.0/24 deny from 91.209.242.0/24 deny from 91.212.16.0/24 deny from 91.212.19.0/24 deny from 91.212.252.0/24 deny from 91.216.4.0/24 deny from 91.217.64.0/23 deny from 91.220.79.0/24 deny from 91.222.196.0/22 deny from 91.224.110.0/23 deny from 91.224.176.0/23 deny from 91.225.52.0/22 deny from 91.226.224.0/23 deny from 91.228.189.0/24 deny from 91.229.214.0/23 deny from 91.230.32.0/24 deny from 91.232.64.0/22 deny from 91.232.68.0/23 deny from 91.232.72.0/22 deny from 91.233.56.0/22 deny from 92.42.48.0/22 deny from 92.42.52.0/22 deny from 92.50.0.0/18 deny from 92.61.176.0/20 deny from 92.62.176.0/20 deny from 92.242.192.0/19 deny from 93.110.0.0/16 deny from 93.126.0.0/18 deny from 93.190.24.0/22 deny from 93.190.28.0/22 deny from 94.74.128.0/18 deny from 94.101.128.0/20 deny from 94.101.176.0/20 deny from 94.101.240.0/20 deny from 94.139.160.0/19 deny from 94.182.0.0/16 deny from 94.183.0.0/16 deny from 94.184.0.0/17 deny from 94.184.128.0/17 deny from 94.232.168.0/22 deny from 94.232.172.0/22 deny from 94.241.128.0/18 deny from 95.38.0.0/16 deny from 95.80.128.0/18 deny from 95.81.64.0/18 deny from 95.82.0.0/18 deny from 95.82.64.0/18 deny from 95.130.56.0/22 deny from 95.130.60.0/22 deny from 95.130.240.0/22 deny from 95.130.244.0/22 deny from 95.142.224.0/20 deny from 109.72.192.0/20 deny from 109.74.224.0/20 deny from 109.95.56.0/22 deny from 109.95.60.0/22 deny from 109.95.64.0/22 deny from 109.95.68.0/22 deny from 109.109.32.0/19 deny from 109.110.160.0/19 deny from 109.111.32.0/19 deny from 109.122.192.0/18 deny from 109.125.128.0/18 deny from 109.162.128.0/17 deny from 109.201.0.0/19 deny from 109.203.160.0/19 deny from 109.225.128.0/18 deny from 109.230.64.0/18 deny from 109.238.176.0/20 deny from 109.239.0.0/20 deny from 128.65.160.0/19 deny from 128.140.0.0/17 deny from 130.185.72.0/22 deny from 130.185.76.0/22 deny from 130.255.192.0/18 deny from 146.66.128.0/22 deny from 146.66.132.0/22 deny from 146.247.40.0/22 deny from 146.247.44.0/22 deny from 158.58.184.0/22 deny from 158.58.188.0/22 deny from 159.20.96.0/20 deny from 159.255.32.0/22 deny from 159.255.36.0/22 deny from 164.215.40.0/22 deny from 164.215.44.0/22 deny from 164.215.56.0/22 deny from 164.215.60.0/22 deny from 164.215.128.0/17 deny from 176.12.64.0/20 deny from 176.46.128.0/19 deny from 176.56.144.0/20 deny from 176.62.144.0/22 deny from 176.62.148.0/22 deny from 176.67.64.0/20 deny from 176.101.32.0/20 deny from 176.101.48.0/22 deny from 176.101.52.0/22 deny from 176.102.224.0/19 deny from 176.221.16.0/20 deny from 176.221.64.0/22 deny from 176.221.68.0/22 deny from 178.21.40.0/22 deny from 178.21.44.0/22 deny from 178.21.160.0/22 deny from 178.21.164.0/22 deny from 178.22.72.0/22 deny from 178.22.76.0/22 deny from 178.131.0.0/16 deny from 178.157.0.0/18 deny from 178.173.128.0/17 deny from 178.215.0.0/18 deny from 178.219.224.0/20 deny from 178.236.32.0/20 deny from 178.238.192.0/20 deny from 178.239.144.0/20 deny from 178.248.40.0/22 deny from 178.248.44.0/22 deny from 178.251.208.0/22 deny from 178.251.212.0/22 deny from 178.252.128.0/18 deny from 178.253.0.0/18 deny from 188.34.0.0/16 deny from 188.75.64.0/18 deny from 188.93.64.0/22 deny from 188.93.68.0/22 deny from 188.118.64.0/18 deny from 188.121.96.0/19 deny from 188.121.128.0/19 deny from 188.126.128.0/19 deny from 188.136.128.0/17 deny from 188.158.0.0/16 deny from 188.159.0.0/16 deny from 188.191.176.0/22 deny from 188.191.180.0/22 deny from 188.245.0.0/16 deny from 188.253.0.0/17 deny from 192.188.127.0/24 deny from 193.8.139.0/24 deny from 193.28.181.0/24 deny from 193.104.22.0/24 deny from 193.104.212.0/24 deny from 193.105.2.0/24 deny from 193.105.6.0/24 deny from 193.106.196.0/22 deny from 193.189.122.0/23 deny from 194.60.228.0/22 deny from 194.106.198.0/24 deny from 194.143.140.0/23 deny from 194.146.148.0/22 deny from 194.225.0.0/16 deny from 195.20.136.0/24 deny from 195.88.188.0/23 deny from 195.110.38.0/23 deny from 195.146.32.0/19 deny from 195.170.163.0/24 deny from 195.191.74.0/23 deny from 195.211.44.0/22 deny from 195.245.70.0/23 deny from 196.3.91.0/24 deny from 212.1.192.0/22 deny from 212.1.196.0/22 deny from 212.16.64.0/19 deny from 212.33.192.0/19 deny from 212.50.224.0/19 deny from 212.80.0.0/19 deny from 212.86.64.0/19 deny from 212.95.128.0/19 deny from 212.120.192.0/19 deny from 213.147.128.0/19 deny from 213.176.0.0/19 deny from 213.176.32.0/19 deny from 213.176.64.0/18 deny from 213.195.0.0/18 deny from 213.207.192.0/18 deny from 213.217.32.0/19 deny from 213.233.160.0/19 deny from 217.11.16.0/20 deny from 217.24.144.0/20 deny from 217.25.48.0/20 deny from 217.64.144.0/20 deny from 217.66.192.0/20 deny from 217.66.208.0/20 deny from 217.146.208.0/20 deny from 217.170.240.0/20 deny from 217.172.96.0/19 deny from 217.174.16.0/20 deny from 217.218.0.0/16 deny from 217.219.0.0/16 ## Country: IRAQ # ISO Code: IQ # Total Networks: 51 # Total Subnets: 231,424 deny from 31.25.136.0/22 deny from 31.25.140.0/22 deny from 37.17.128.0/19 deny from 37.77.48.0/22 deny from 37.77.52.0/22 deny from 37.77.64.0/20 deny from 46.30.224.0/22 deny from 46.30.228.0/22 deny from 46.31.72.0/22 deny from 46.31.76.0/22 deny from 46.243.16.0/22 deny from 46.243.20.0/22 deny from 46.253.128.0/20 deny from 62.201.192.0/18 deny from 78.109.224.0/20 deny from 80.77.176.0/20 deny from 81.90.16.0/20 deny from 81.92.224.0/20 deny from 81.95.80.0/20 deny from 86.111.144.0/22 deny from 86.111.148.0/22 deny from 93.91.192.0/20 deny from 93.93.104.0/22 deny from 93.93.108.0/22 deny from 93.94.48.0/22 deny from 93.94.52.0/22 deny from 93.187.32.0/22 deny from 93.187.36.0/22 deny from 95.159.64.0/18 deny from 95.170.192.0/19 deny from 109.127.64.0/18 deny from 109.205.112.0/22 deny from 109.205.116.0/22 deny from 109.224.0.0/18 deny from 130.193.128.0/17 deny from 130.255.88.0/22 deny from 130.255.92.0/22 deny from 149.255.192.0/18 deny from 159.255.160.0/22 deny from 159.255.164.0/22 deny from 176.28.72.0/22 deny from 176.28.76.0/22 deny from 176.241.80.0/20 deny from 178.17.48.0/20 deny from 178.22.32.0/22 deny from 178.22.36.0/22 deny from 188.72.0.0/18 deny from 194.117.56.0/22 deny from 194.117.60.0/22 deny from 212.126.96.0/19 deny from 217.171.176.0/20 ## Country: JORDAN # ISO Code: JO # Total Networks: 95 # Total Subnets: 647,552 deny from 31.222.224.0/19 deny from 37.17.192.0/20 deny from 37.44.32.0/22 deny from 37.44.36.0/22 deny from 37.123.64.0/19 deny from 37.140.240.0/20 deny from 37.152.0.0/21 deny from 46.23.112.0/20 deny from 46.32.96.0/19 deny from 46.185.128.0/17 deny from 46.248.192.0/19 deny from 77.241.64.0/20 deny from 77.245.0.0/20 deny from 79.99.248.0/22 deny from 79.99.252.0/22 deny from 79.134.128.0/19 deny from 79.173.192.0/18 deny from 80.64.208.0/20 deny from 80.90.160.0/20 deny from 80.249.208.0/20 deny from 81.28.112.0/20 deny from 82.212.64.0/18 deny from 84.18.32.0/19 deny from 84.18.64.0/19 deny from 85.159.216.0/22 deny from 85.159.220.0/22 deny from 86.108.0.0/17 deny from 87.236.232.0/22 deny from 87.236.236.0/22 deny from 87.238.128.0/22 deny from 87.238.132.0/22 deny from 89.28.216.0/22 deny from 89.28.220.0/22 deny from 91.186.224.0/19 deny from 91.220.195.0/24 deny from 92.62.112.0/20 deny from 92.241.32.0/19 deny from 92.253.0.0/17 deny from 93.95.200.0/22 deny from 93.95.204.0/22 deny from 93.191.176.0/22 deny from 93.191.180.0/22 deny from 94.127.208.0/22 deny from 94.127.212.0/22 deny from 94.142.32.0/19 deny from 94.249.0.0/17 deny from 95.140.160.0/20 deny from 95.141.208.0/20 deny from 95.172.192.0/19 deny from 109.107.128.0/19 deny from 109.107.224.0/19 deny from 109.237.192.0/20 deny from 141.0.0.0/22 deny from 141.0.4.0/22 deny from 141.105.56.0/22 deny from 141.105.60.0/22 deny from 149.200.128.0/17 deny from 176.28.128.0/17 deny from 176.29.0.0/16 deny from 176.57.0.0/19 deny from 176.241.64.0/22 deny from 176.241.68.0/22 deny from 178.17.208.0/20 deny from 178.20.184.0/22 deny from 178.20.188.0/22 deny from 178.77.128.0/18 deny from 178.238.176.0/20 deny from 188.95.64.0/22 deny from 188.95.68.0/22 deny from 188.123.128.0/19 deny from 188.123.160.0/19 deny from 188.244.96.0/20 deny from 188.247.64.0/19 deny from 193.17.53.0/24 deny from 193.34.198.0/25 deny from 193.104.229.0/24 deny from 193.108.134.0/23 deny from 193.188.64.0/19 deny from 193.188.252.0/24 deny from 193.189.148.0/24 deny from 193.200.196.0/24 deny from 194.110.236.0/24 deny from 194.165.128.0/19 deny from 195.158.192.0/19 deny from 212.34.0.0/19 deny from 212.35.64.0/19 deny from 212.38.128.0/19 deny from 212.118.0.0/19 deny from 213.139.32.0/19 deny from 213.186.160.0/19 deny from 213.188.64.0/19 deny from 217.8.112.0/20 deny from 217.23.32.0/20 deny from 217.29.240.0/20 deny from 217.144.0.0/20 ## Country: SAUDI ARABIA # ISO Code: SA # Total Networks: 294 # Total Subnets: 5,502,464 deny from 2.88.0.0/14 deny from 31.24.224.0/22 deny from 31.24.228.0/22 deny from 31.166.0.0/16 deny from 31.167.0.0/16 deny from 37.16.32.0/19 deny from 37.16.128.0/17 deny from 37.76.224.0/19 deny from 37.99.128.0/18 deny from 37.104.0.0/14 deny from 37.121.0.0/16 deny from 37.124.0.0/14 deny from 37.141.0.0/16 deny from 46.18.160.0/22 deny from 46.18.164.0/22 deny from 46.29.80.0/22 deny from 46.29.84.0/22 deny from 46.38.64.0/19 deny from 46.44.64.0/18 deny from 46.52.0.0/17 deny from 46.151.208.0/22 deny from 46.151.212.0/22 deny from 46.152.0.0/16 deny from 46.153.0.0/16 deny from 46.184.0.0/17 deny from 46.230.0.0/17 deny from 46.235.88.0/22 deny from 46.235.92.0/22 deny from 46.240.0.0/17 deny from 46.251.128.0/19 deny from 62.3.0.0/19 deny from 62.3.32.0/19 deny from 62.120.0.0/16 deny from 62.149.64.0/18 deny from 77.30.0.0/16 deny from 77.31.0.0/16 deny from 77.64.0.0/17 deny from 77.73.192.0/22 deny from 77.73.196.0/22 deny from 77.87.16.0/22 deny from 77.87.20.0/22 deny from 77.95.216.0/22 deny from 77.95.220.0/22 deny from 77.221.96.0/19 deny from 77.232.96.0/19 deny from 77.240.80.0/20 deny from 77.240.128.0/20 deny from 78.93.0.0/16 deny from 78.110.0.0/20 deny from 78.138.192.0/18 deny from 79.98.184.0/22 deny from 79.98.188.0/22 deny from 79.170.0.0/22 deny from 79.170.4.0/22 deny from 79.170.48.0/22 deny from 79.170.52.0/22 deny from 79.172.128.0/18 deny from 80.74.80.0/20 deny from 80.240.64.0/20 deny from 81.16.208.0/20 deny from 81.21.48.0/20 deny from 82.118.160.0/19 deny from 82.147.192.0/19 deny from 82.167.0.0/16 deny from 82.205.128.0/17 deny from 83.101.128.0/17 deny from 84.22.224.0/19 deny from 84.23.96.0/19 deny from 84.235.0.0/17 deny from 85.129.128.0/17 deny from 85.194.64.0/18 deny from 85.208.0.0/16 deny from 85.209.0.0/16 deny from 85.237.128.0/19 deny from 86.51.0.0/16 deny from 86.60.0.0/17 deny from 86.111.192.0/22 deny from 86.111.196.0/22 deny from 87.101.128.0/17 deny from 87.109.0.0/16 deny from 87.230.128.0/17 deny from 88.81.0.0/19 deny from 88.84.96.0/19 deny from 88.85.224.0/19 deny from 88.213.0.0/18 deny from 88.213.64.0/18 deny from 89.4.0.0/16 deny from 89.5.0.0/16 deny from 89.108.0.0/18 deny from 89.144.64.0/18 deny from 89.147.0.0/18 deny from 89.188.64.0/19 deny from 89.189.224.0/19 deny from 89.237.128.0/18 deny from 90.148.0.0/16 deny from 91.102.16.0/22 deny from 91.102.20.0/22 deny from 91.147.128.0/18 deny from 91.151.160.0/20 deny from 91.195.88.0/23 deny from 91.197.200.0/22 deny from 91.198.62.0/24 deny from 91.198.102.0/24 deny from 91.198.251.0/24 deny from 91.199.107.0/24 deny from 91.199.187.0/24 deny from 91.206.134.0/23 deny from 91.207.12.0/23 deny from 91.208.4.0/24 deny from 91.208.128.0/24 deny from 91.208.156.0/24 deny from 91.209.215.0/24 deny from 91.209.253.0/24 deny from 91.212.67.0/24 deny from 91.213.18.0/24 deny from 91.213.205.0/24 deny from 91.213.213.0/24 deny from 91.221.22.0/23 deny from 91.221.184.0/23 deny from 91.221.202.0/23 deny from 91.222.200.0/22 deny from 91.223.210.0/24 deny from 91.227.22.0/24 deny from 91.227.24.0/23 deny from 91.229.32.0/23 deny from 91.229.220.0/24 deny from 91.230.124.0/23 deny from 91.233.141.0/24 deny from 91.233.174.0/24 deny from 92.43.168.0/22 deny from 92.43.172.0/22 deny from 92.48.0.0/18 deny from 93.98.0.0/16 deny from 93.178.0.0/18 deny from 93.189.96.0/22 deny from 93.189.100.0/22 deny from 93.189.192.0/22 deny from 93.189.196.0/22 deny from 94.77.192.0/18 deny from 94.96.0.0/14 deny from 94.143.224.0/22 deny from 94.143.228.0/22 deny from 95.129.8.0/22 deny from 95.129.12.0/22 deny from 109.82.0.0/16 deny from 109.83.0.0/16 deny from 109.171.128.0/17 deny from 128.204.240.0/20 deny from 130.255.176.0/22 deny from 130.255.180.0/22 deny from 146.251.0.0/16 deny from 149.3.160.0/20 deny from 149.255.16.0/22 deny from 149.255.20.0/22 deny from 159.0.0.0/16 deny from 166.87.0.0/16 deny from 167.111.0.0/16 deny from 176.16.0.0/14 deny from 176.44.0.0/16 deny from 176.45.0.0/16 deny from 176.224.0.0/16 deny from 176.225.0.0/16 deny from 176.241.184.0/22 deny from 176.241.188.0/22 deny from 178.20.144.0/22 deny from 178.20.148.0/22 deny from 178.73.64.0/18 deny from 178.80.0.0/16 deny from 178.81.0.0/16 deny from 178.248.112.0/22 deny from 178.248.116.0/22 deny from 188.48.0.0/13 deny from 188.95.160.0/22 deny from 188.95.164.0/22 deny from 188.117.64.0/18 deny from 188.119.64.0/18 deny from 188.132.0.0/17 deny from 188.139.0.0/17 deny from 188.248.0.0/16 deny from 188.249.0.0/16 deny from 192.162.72.0/22 deny from 192.203.227.0/24 deny from 192.251.61.0/24 deny from 192.251.62.0/24 deny from 192.251.63.0/24 deny from 192.251.64.0/24 deny from 192.251.65.0/24 deny from 193.8.250.0/24 deny from 193.19.90.0/23 deny from 193.22.249.0/24 deny from 193.23.180.0/24 deny from 193.27.7.0/24 deny from 193.28.9.0/24 deny from 193.28.10.0/24 deny from 193.28.94.0/24 deny from 193.29.50.0/24 deny from 193.37.143.0/24 deny from 193.42.220.0/24 deny from 193.47.102.0/24 deny from 193.104.204.0/24 deny from 193.105.89.0/24 deny from 193.105.119.0/24 deny from 193.109.218.0/24 deny from 193.142.222.0/24 deny from 193.169.190.0/23 deny from 193.188.1.0/24 deny from 193.188.2.0/24 deny from 193.188.3.0/24 deny from 193.188.14.0/24 deny from 193.188.15.0/24 deny from 193.188.16.0/20 deny from 193.188.200.0/24 deny from 193.194.122.0/24 deny from 193.200.247.0/24 deny from 193.227.127.0/24 deny from 194.0.15.0/24 deny from 194.36.164.0/24 deny from 194.50.35.0/24 deny from 194.110.72.0/24 deny from 194.126.231.0/24 deny from 195.10.197.0/24 deny from 195.14.19.0/24 deny from 195.34.68.0/23 deny from 195.43.137.0/24 deny from 195.47.234.0/24 deny from 195.66.100.0/24 deny from 195.66.128.0/23 deny from 195.85.224.0/24 deny from 195.88.244.0/23 deny from 195.114.106.0/23 deny from 195.128.131.0/24 deny from 195.130.206.0/24 deny from 195.134.184.0/22 deny from 195.134.188.0/22 deny from 195.149.65.0/24 deny from 195.149.91.0/24 deny from 195.170.180.0/24 deny from 195.177.194.0/23 deny from 195.182.31.0/24 deny from 195.189.212.0/23 deny from 195.191.6.0/23 deny from 195.242.177.0/24 deny from 195.242.188.0/24 deny from 195.242.196.0/22 deny from 195.246.104.0/23 deny from 196.1.3.0/24 deny from 196.1.6.0/24 deny from 196.1.64.0/22 deny from 196.3.66.0/24 deny from 196.15.32.0/19 deny from 198.11.0.0/22 deny from 198.36.32.0/21 deny from 198.36.40.0/22 deny from 198.36.44.0/23 deny from 198.36.46.0/24 deny from 198.51.12.0/24 deny from 212.11.160.0/19 deny from 212.12.160.0/19 deny from 212.24.224.0/19 deny from 212.26.0.0/19 deny from 212.26.32.0/19 deny from 212.26.64.0/18 deny from 212.33.160.0/19 deny from 212.46.32.0/19 deny from 212.57.192.0/19 deny from 212.62.96.0/19 deny from 212.70.32.0/19 deny from 212.71.32.0/19 deny from 212.76.64.0/19 deny from 212.93.160.0/19 deny from 212.93.192.0/19 deny from 212.100.192.0/19 deny from 212.102.0.0/19 deny from 212.107.96.0/19 deny from 212.116.192.0/19 deny from 212.118.96.0/19 deny from 212.118.128.0/19 deny from 212.119.64.0/19 deny from 212.138.0.0/16 deny from 212.162.128.0/19 deny from 212.215.128.0/17 deny from 213.5.168.0/22 deny from 213.5.172.0/22 deny from 213.136.192.0/19 deny from 213.166.128.0/19 deny from 213.181.160.0/19 deny from 213.184.160.0/19 deny from 213.210.192.0/18 deny from 213.230.0.0/19 deny from 213.236.32.0/19 deny from 217.8.64.0/20 deny from 217.12.224.0/20 deny from 217.145.240.0/20 deny from 217.173.80.0/20 # allow from all </Limit> [/php]

רוצים לחסום עוד מדינות?

איך ממש טעם לחסום כתובת IP אחת אחרי השנייה ולכן מצאנו ברשת האינטרנט כלי נהדר שמאפשר לבחור מדינות שלמות ולקבל קוד מוכן! הוספנו את קישור לכלי הזה כמו גם לאחרים לסרגל הכלים שלנו.

סרגל כלים קידום אתרים

 

לסיכום + טיפ

אני ממליץ כי גם אם אתם מעט חוששים להתעסק עם ה-htaccess שלכם תגבו אותו ותנסו להוסיף את הקוד הבא שמשדרג את רמת האבטחה של האתר כולו. בנוסף אני מדגיש שוב שהיכן שאתם יכולים להשתמש בקוד נקי במקום תוספים עשו כך.

סיפור קטן שאני יכול לשתף הוא שממש לאחרונה פרצו לנו לאתר (אתר תמיכה לא נורא) על ידי פריצה לתוסף wp-super-cache… זה לא שאיננו יודעים כיצד לעשות אלא שפשוט התעצלנו… אין ספק שבמצטבר עם הזמן שהשקענו בניקוי האתר שפרצו אליו היה פשוט שווה לעשות את זה.