Research on isapi_rewite

Source: Internet
Author: User

Isapi_rewrite is a powerful URL Processing Engine Based on regular expressions. It is very similar to Apache's mod_rewrite, but it is designed for IIS.
Example:
Decompress the file to the C root directory.
Add this filter to the ISAPI of the IIS Site for which rewrite is enabled
Filter Name rewrite
Select c: \ rewrite. dll as the executable file.
Httpd. INI is the configuration file
If you want to protect individual sites from anti-leech protection, or your forum and supesite are two separate domain names. The above method will cause mutual anti-leech protection! Unable to call normally. Please follow the method below to change
Rewritecond HOST: (. +)
Rewritecond Referer :(?! Http: // \ 1 .*).*
Rewriterule .*\.(? : Gifjpgpng)/block.gif [I, O]
Put the aboveCodeThe second line is changed:
Rewritecond Referer :(?! Http ://(? : Www \. flydown \. netwww \. crdate \. com). +
The above code means that in addition to the http://www.flydown.net and www.crdate.com, the two sites, all the leeching on other sites refused!
The anti-Leech and static configurations have been adjusted. Then, the block.gif file is created in the root directory of the website.
This picture is displayed on the leeching website!

 

Basic usage:
# Set/test/Re. asp? Id = 123 ing to/test/RE/123
Rewriterule/test/RE/(D +)/test/Re. asp? Id = $1

# Ing xxx.xeonwell.com to www.xeonwell.com/xxxis complete.
Rewritecond HOST :(?! /. | WWW | BBS) (. *) .xeonwell.com
Rewriterule (. *) http://www.xeonwell.com/%1%2 [I, R]

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.