Lighttpd-site access control

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.