Simple Machines Community Forum

SMF Support => Language Specific Support => Français (French) => Topic started by: Hotcmel on April 28, 2020, 08:20:26 AM

Title: Comment sécurisé SMF Forum
Post by: Hotcmel on April 28, 2020, 08:20:26 AM
Bonjour à tous ,

J'ai essayé de trouver sur le net mais je n ai rien trouvé.

Comment sécurisez vous vos forum ?

Pour ma part :

J'ai mis des questions
J'ai mis un recpatcha https://custom.simplemachines.org/mods/index.php?mod=1044
J'ai modifier le .htaccess

et voila le résultat de cette nuit (copie joint)

Et vous ? que faites vous ?


Title: Re: Comment sécurisé SMF Forum
Post by: alexetgus on April 28, 2020, 01:51:52 PM
Si seulement il existait une recette miracle, si seulement...
Si tu ne surveilles pas ton forum quotidiennement, de plus en plus de robots passeront par là...

Pour info, reCAPTCHA est cracké, j'espère que ça a été corrigé depuis le temps.
Tu sais que tu peux modifier la difficulté des captcha en allant sur ton compte reCAPTCHA ?
Il suffit juste de glisser un curseur comme ça te chante.
Le souci, c'est qu'il faut trouver la juste mesure. Ca peut vite saouler de chercher des vélos, des tongues, des passages piéton, des terroristes, des feux tricolores, etc. Plus tu choisis la difficulté, plus reCAPTCHA deviendra emmerdant.
Mais si c'est juste pour les inscriptions, ça va.

(https://i.imgur.com/eKjgM2S.png)
Title: Re: Comment sécurisé SMF Forum
Post by: Hotcmel on April 29, 2020, 03:41:53 AM
Ok merci Alex, je n ai jamais eu autant de robot qu en ce moment et heureusement qu on ai  2 tous les jours dessus pour virer tout le monde  :-\

effectivement je ne savais pas que l on pouvait regler ca, du j ai mis vélos, des tongues, des passages piéton, des terroristes, des feux tricolores  :laugh:
Title: Re: Comment sécurisé SMF Forum
Post by: Hotcmel on April 30, 2020, 04:32:11 AM
J'ai fait ce que tu m'as dit, et ben ca continue  :-\

Une autre piste qui fonctionne ? un mod efficace ?

merci
Title: Re: Comment sécurisé SMF Forum
Post by: alexetgus on April 30, 2020, 02:42:58 PM
Au pire regarde ici :
https://chez-oim.org/index.php/topic,2283.0.html (https://chez-oim.org/index.php/topic,2283.0.html)

Et ajoute éventuellement les IPs de tes emmerdeurs spécifiques.
A la fin ça finira par aller mieux.
Title: Re: Comment sécurisé SMF Forum
Post by: Hotcmel on May 04, 2020, 03:44:06 AM
Ok merci

J'ai ajouté les listes des IP dans mon Htaccess -> erreur 500

Title: Re: Comment sécurisé SMF Forum
Post by: maximus23 on May 04, 2020, 08:42:43 AM
Bonjour,

Si tu as une erreur 500 c'est que tu as une erreur de syntaxe dans ton fichier.

Joins le ici que l'on y regarde.

:)
Title: Re: Comment sécurisé SMF Forum
Post by: Hotcmel on May 04, 2020, 09:24:15 AM
Merci maximus le voici

Code: [Select]
RewriteEngine On
RewriteCond %{HTTPS} !=on

RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteEngine on

RewriteRule "^ads.txt$" "ads_tm.php"

SetEnvIf GEOIP_COUNTRY_CODE UA BlockCountry
SetEnvIf GEOIP_COUNTRY_CODE RU BlockCountry
SetEnvIf GEOIP_COUNTRY_CODE CN BlockCountry
SetEnvIf GEOIP_COUNTRY_CODE SG BlockCountry
Deny from env=BlockCountry

Order Allow,Deny
Allow from all
Deny from 144.217.171.225
Deny from 188.165.235.21
Deny from 5.3.152.0/21
Deny from 5.3.192.0/22
Deny from 5.18.32.0/21
Deny from 5.101.40.0/24
Deny from 5.157.43.0/24
Deny from 5.165.192.0/21
Deny from 5.188.216.0/24
Deny from 5.248.0.0/16
Deny from 23.94.0.0/15
Deny from 23.254.128.0/17
Deny from 27.64.0.0/12
Deny from 37.49.224.0/22
Deny from 37.49.230.0/24
Deny from 37.112.56.0/21
Deny from 37.113.40.0/21
Deny from 37.115.0.0/16
Deny from 37.229.0.0/16
Deny from 45.13.39.0/24
Deny from 45.82.153.0/24
Deny from 45.95.168.0/22
Deny from 45.125.66.0/24
Deny from 45.133.99.0/24
Deny from 45.142.195.0/24
Deny from 45.143.223.0/24
Deny from 45.227.253.0/24
Deny from 46.35.184.0/24
Deny from 46.38.144.0/24
Deny from 46.38.145.0/24
Deny from 46.118.0.0/15
Deny from 46.148.27.0/24
Deny from 46.185.0.0/17
Deny from 46.211.0.0/16
Deny from 46.147.84.0/22
Deny from 46.161.9.0/24
Deny from 46.161.42.0/24
Deny from 46.175.64.0/20
Deny from 46.175.80.0/21
Deny from 47.74.0.0/15
Deny from 50.253.211.61
Deny from 52.80.0.0/14
Deny from 60.248.0.0/16
Deny from 62.149.29.0/24
Deny from 78.128.113.0/24
Deny from 80.66.81.0/24
Deny from 80.82.70.0/24
Deny from 80.82.77.0/24
Deny from 81.16.0.0/20
Deny from 81.23.16.0/20
Deny from 84.54.36.0/23
Deny from 84.207.0.0/16
Deny from 86.16.0.0/14
Deny from 87.246.0.0/19
Deny from 88.26.192.0/18
Deny from 89.248.160.0/21
Deny from 89.248.169.0/24
Deny from 89.248.170.0/23
Deny from 89.248.172.0/24
Deny from 89.248.174.0/24
Deny from 91.200.12.0/22
Deny from 91.209.70.0/24
Deny from 91.214.84.0/22
Deny from 91.234.99.0/24
Deny from 92.118.38.0/24
Deny from 93.174.88.0/21
Deny from 93.190.88.0/21
Deny from 94.102.56.0/24
Deny from 94.140.114.0/23
Deny from 94.153.0.0/16
Deny from 95.167.0.0/16
Deny from 94.180.128.0/22
Deny from 94.181.32.0/20
Deny from 95.181.178.0/23
Deny from 95.188.0.0/17
Deny from 103.79.140.0/22
Deny from 103.207.36.0/22
Deny from 103.215.216.0/22
Deny from 103.231.139.0/24
Deny from 103.236.252.0/22
Deny from 104.168.7.0/24
Deny from 106.120.0.0/15
Deny from 107.172.0.0/14
Deny from 108.62.120.0/22
Deny from 108.174.48.0/20
Deny from 108.174.192.0/20
Deny from 109.75.36.0/22
Deny from 109.162.0.0/17
Deny from 109.194.56.0/21
Deny from 109.195.85.0/24
Deny from 114.96.0.0/13
Deny from 114.119.128.0/18
Deny from 114.224.0.0/12
Deny from 128.90.59.0/24
Deny from 134.249.0.0/16
Deny from 139.217.0.0/16
Deny from 141.98.9.0/24
Deny from 141.98.10.0/24
Deny from 142.11.192.0/18
Deny from 146.185.223.0/24
Deny from 154.73.182.16/30
Deny from 159.65.96.0/20
Deny from 159.69.0.0/16
Deny from 159.138.128.0/20
Deny from 160.153.200.0/21
Deny from 159.138.144.0/20
Deny from 163.47.144.0/22
Deny from 172.81.128.0/21
Deny from 172.245.0.0/16
Deny from 172.245.254.0/26
Deny from 176.8.0.0/16
Deny from 176.36.0.0/14
Deny from 176.103.48.0/20
Deny from 176.113.224.0/19
Deny from 178.137.0.0/16
Deny from 178.159.36.0/24
Deny from 178.159.37.0/24
Deny from 181.41.216.0/24
Deny from 181.214.206/24
Deny from 181.215.195/24
Deny from 185.14.250.0/24
Deny from 185.36.81.0/24
Deny from 185.50.149.0/24
Deny from 185.137.108.0/22
Deny from 185.137.111.0/24
Deny from 185.143.220.0/22
Deny from 185.208.211.0/24
Deny from 185.222.211.0/24
Deny from 185.228.80.0/24
Deny from 185.234.216.0/22
Deny from 185.234.217.0/24
Deny from 185.234.219.0/24
Deny from 185.255.31.0/24
Deny from 188.163.0.0/17
Deny from 188.187.136.0/21
Deny from 188.232.0.0/21
Deny from 191.96.249/24
Deny from 192.3.0.0/16
Deny from 192.210.128.0/17
Deny from 192.227.128.0/17
Deny from 193.32.160.0/24
Deny from 193.41.60.0/22
Deny from 193.56.28.0/24
Deny from 193.169.254.0/24
Deny from 193.201.224.0/22
Deny from 194.53.142.0/24
Deny from 194.156.126.0/24
Deny from 195.231.0.0/18
Deny from 196.196.0.0/16
Deny from 198.20.128.0/19
Deny from 198.46.248.0/24
Deny from 200.57.73.168/29
Deny from 202.221.41.0/24
Deny from 220.243.0.0/16

Title: Re: Comment sécurisé SMF Forum
Post by: alexetgus on May 04, 2020, 02:34:08 PM
Tu devrais mettre ton
Code: [Select]
Deny from env=BlockCountryA la fin du .htaccess, après la liste d'IPs.

La fin du fichier serait comme ça :
Code: [Select]
Deny from 200.57.73.168/29
Deny from 202.221.41.0/24
Deny from 220.243.0.0/16
Deny from env=BlockCountry

Ou alors tu places ta liste de blocage IP en tout début de fichier.
Title: Re: Comment sécurisé SMF Forum
Post by: alexetgus on May 06, 2020, 01:55:44 PM
Bon !
Ca marche ou ça marche pas ? ???