Mercurial > prosody-wiki
annotate mod_regredirect.wiki @ 104:8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
author | maranda3985 |
---|---|
date | Wed, 30 Dec 2009 00:41:19 +0000 |
parents | |
children | 9f866bc3281b |
rev | line source |
---|---|
104
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
1 #summary XEP-077 IBR Registration Redirect. |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
2 #labels Stage-Beta |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
3 |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
4 = Introduction = |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
5 |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
6 Registration as explained in IBR xep. |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
7 |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
8 = Details = |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
9 |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
10 Self-explanatory this simple module, lets you redirect users who come from ips not in the registration_whitelist config options to an Url of your choice. |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
11 |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
12 = Usage = |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
13 |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
14 Copy the module file into your prosody modules directory. |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
15 |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
16 Then set the following options into your config file. |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
17 {{{ |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
18 registration_whitelist = { "*your whitelisted web server ip address*" } |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
19 registrarion_url = "*your web registration page url*" |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
20 }}} |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
21 |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
22 You can find an example of working web registration form using JsJaC (javascript) at the following url http://register.lightwitch.org |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
23 |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
24 = Compatibility = |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
25 |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
26 0.7 should work. |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
27 0.6 works. |
8efa9cb52f6c
mod_regredirect: Created wiki page through web user interface.
maranda3985
parents:
diff
changeset
|
28 0.5 untested. |