.htaccess文件封ip或ip段

<IfModule mod_rewrite.c>

Options +FollowSymlinks -Multiviews

RewriteEngine on

#http跳转到https
#RewriteCond %{HTTPS} !=on
#RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R,L]
 

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
Deny from 23.19.74.68 155.235.85.252 104.233.168.80 23.225.146.138 104.233.161.32 23.27.194.34 148.251.8.250 155.235.75.252 52.185.158.246 52.185.129.23 23.239.2.39
Deny from 23.225.139
Deny from 23.225.145
Deny from 104.140.13
Deny from 104.140.17
Deny from 104.140.79
Deny from 104.206.1
</IfModule>

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论
返回
顶部