Исключения.
Добавлено: Пт мар 27, 2009 7:28
Добрый день!!! Подскажите пожалуйста, как реализовать следующую задачу. Имеем конфиг:
Авторизация по IP. Нужно для конкретного IP открыть из любого банлиста (или набора листов) один, два или более урлов.
Версия Rejik 3.2.1
Спасибо.
Код: Выделить всё
error_log /usr/local/rejik/redirector.err
change_log /usr/local/rejik/redirector.log
make-cache /usr/local/rejik/make-cache
#allow_urls /usr/local/rejik/banlists/allow_urls
work_ip 192.168.200.0/255.255.255.0
work_ip 192.168.204.0/255.255.255.0
<IP>
ban_dir /usr/local/rejik/banlists/ip
url http://127.0.0.1/ban/access_denied.html
allow_ip f:/usr/local/rejik/allowed/ip
<AUDIO-VIDEO>
ban_dir /usr/local/rejik/banlists/audio-video
url http://127.0.0.1/ban/audio-video.html
allow_ip f:/usr/local/rejik/allowed/audio-video
<BANNERS>
ban_dir /usr/local/rejik/banlists/banners
url http://127.0.0.1/ban/1x1.gif
log off
<CHATS>
ban_dir /usr/local/rejik/banlists/chats
url http://127.0.0.1/ban/access_denied.html
allow_ip f:/usr/local/rejik/allowed/chats
<DATING>
ban_dir /usr/local/rejik/banlists/dating
url http://127.0.0.1/ban/access_denied.html
allow_ip f:/usr/local/rejik/allowed/dating
<GAMES>
ban_dir /usr/local/rejik/banlists/games
url http://127.0.0.1/ban/access_denied.html
allow_ip f:/usr/local/rejik/allowed/games
<HUMOR>
ban_dir /usr/local/rejik/banlists/humor
url http://127.0.0.1/ban/access_denied.html
allow_ip f:/usr/local/rejik/allowed/humor
<JS>
ban_dir /usr/local/rejik/banlists/js
url http://127.0.0.1/ban/js.js
allow_ip f:/usr/local/rejik/allowed/js
#log off
<PORNO>
ban_dir /usr/local/rejik/banlists/porno
url http://127.0.0.1/ban/porno.html
allow_ip f:/usr/local/rejik/allowed/porno
<SPYWARE>
ban_dir /usr/local/rejik/banlists/spyware
url http://127.0.0.1/ban/spyware.html
allow_ip f:/usr/local/rejik/allowed/spyware
<WAREZ>
ban_dir /usr/local/rejik/banlists/warez
url http://127.0.0.1/ban/access_denied.html
allow_ip f:/usr/local/rejik/allowed/warez
Версия Rejik 3.2.1
Спасибо.