|
Note
This code is unmaintained. mod_ifier
Free Software
|
Once installed and loaded the mod_ifier module adds several new configuration directives which you can use in your Apache configuration file. These directives are used to implement your filtering rules. Several examples are included in the download. If you include the following in your configuration file you'll be able to view the active rules online. # # Allow ourselves to see the active mod_ifier rule set. # # (Any location may be chosen, this is just an example.) # <Location /mod_ifier> # Specify the handler to use. SetHandler mod_ifier-handler # Restrict access. Order deny,allow Deny from all Allow from 127.0.0.1 </Location> This allows you to visit http://example.com/mod_ifier and see the loaded rules. Here is an example Note: this example contains "bad words"tm
Several of the available rule-types allow you to specify an action to carry out which only applies to that rule. These are marked with * in the list above. As an example in the following configuration snippet we specify that matches generally should result in the return of a HTTP 403 response code - but that matches to /admin/ should result in a 404 error code unless they come from a trusted IP address: # Default action to carry out on a match DropAction status=403 # Never match this IP address DropWhitelist 192.168.1.1 # Result in a 404 on /admin DropPath /admin status=404 |
|
[ Sitemap | Contact Me ]
|