远程访问DVMA

来源:互联网 发布:淘宝中脉 编辑:程序博客网 时间:2024/05/19 11:47

CentOS 7环境:

1)        关闭firewall:

systemctl stopfirewalld.service #停止firewall

systemctl disablefirewalld.service #禁止firewall开机启动

firewall-cmd--state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)

2)        在lampp/apache2/conf/httpd.conf中修改为

AllowOverride None

Order deny,allow

# Deny from all

Allow from all

#允许所有访问

Satisfy all

3)        在…/dvwa/.htaccess中修改为:

# Limit access to localhost

#<Limit GET POST PUT>

# order deny,allow

# deny from all

#allow from 127.0.0.1

allow from 192.168.1.*

#允许来自192.168.1.*的访问

0 0
原创粉丝点击