rejetto forum

Custom Limit for IP

0 Members and 1 Guest are viewing this topic.

Offline therise

  • Occasional poster
  • *
    • Posts: 14
    • View Profile
Hi again peeps...
Here my ideas, I am enabling 1 download lmit for single address... But Im currenty hosting to the internet using this method > http://www.rejetto.com/forum/index.php/topic,9388.0.html ...

So, for example, my ip would be 10.xx.xx.200 and when ever someone accessing my server via internet should be refer to 10.xx.xx.200... But at same time, Im hosting to LAN that does not need internet access... I just wondering if I remove limit to 10.xx.xx.200 but still limiting others IP on LAN... Is it possible?

I dont know how to explain it better... Any question would be welcome..

Thanks in advanced...


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
mmm, yes, it's possible but not by using the ready-made limit function. Disable that, and the function will be crafted with a little script, something like

on a new download: if IP address is not like 10.* and count of downloads from this ip is more than 1, then disconnect

translated (but not tested) in the actual scripting language is something like (ALT+F6 and put this text)

[download]
{.disconnection reason|only one download at time please|
  if={.and|{.match address|10.*|%ip%.}| {.current downloads|ip=%ip%.}.}
.}



it's not very complicated, so it may even work as i imagined


Offline therise

  • Occasional poster
  • *
    • Posts: 14
    • View Profile
ok, im confuse...
may i shud straight give my ip... my ip is 10.14.22.200... i would like to unlimited connection via 10.14.22.200 since pagekite using this ip to connect...hmm...im a bit newbie, but i want feed my curiousity with new ideas...just love to see HFS growing  ;D


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
i can simplify things:
1. go to HFS (the program, not the website)
2. press ALT+F6
3. paste the text i gave you

is it easy enough right now? :)

i noticed an error in the script, this is a corrected version
Code: [Select]
[+download]
{.disconnection reason|only one download at time please|
  if={.and|{.match address|\10.*|%ip%.}| {.current downloads|ip=%ip%.}.}
.}


Offline therise

  • Occasional poster
  • *
    • Posts: 14
    • View Profile
i tot that i did it wrongly... but i did right way with wrong script... LOL... thanks rojetto!!! u always the best!!