Introduction:
Sometimes the site finds that the concurrency of a touch IP address is high, resulting in high bandwidth and high server load. You need to cut off its IP address access to the site for control. The rules are as follows:
# Web service access control
# Deny access to the website from 192.168.1.237
$ HTTP ["remoteip"] = ~ "192.168.1.237 "{
Url. access-deny = ("")
}
Or
$ HTTP ["remoteip"] = "192.168.1.237 "{
Url. access-deny = ("")
}
# Only 192.168.1.189 is allowed to access this site
$ HTTP ["remoteip"]! ~ "192.168.1.189 "{
Url. access-deny = ("")
}
# Only 192.168.1.0/24,192.168 .2.0/24 are allowed to access the site
$ HTTP ["remoteip"]! = "192.168.1.0/24 | 192.168.2.0/24 "{
Url. access-deny = ("")
}
Or
$ HTTP ["remoteip"]! ~ "192.168.1.0/24 | 192.168.2.0/24 "{
Url. access-deny = ("")
}
# Only allow access to the site's Frank directory 192.168.1.189
$ HTTP ["remoteip"]! ~ "192.168.1.189 | 192.168.1.237 "{
$ HTTP ["url"] = ~ "^/Frank "{
Url. access-deny = ("")
}
}
Lighttpd details: click here
Lighttpd: click here
Build Lighttpd in CentOS 5.6
Cacti monitoring Lighttpd
Ubuntu manual compilation and installation of Lighttpd configuration to run PHP
Port Lighttpd Web server to ARM Linux
Build a Lighttpd + PHP + MySQL environment in Ubuntu
Install Lighttpd + PHP5 + MySQL on CentOS 5.6
Lighttpd performs anti-leech protection on compressed video files