rejetto forum
May 25, 2012, 11:51:24 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Custom Limit for IP  (Read 521 times)
0 Members and 2 Guests are viewing this topic.
therise
Occasional poster
*
Offline Offline

Malaysia Malaysia

Posts: 14


View Profile Email
« on: April 03, 2011, 12:13:14 AM »

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...
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #1 on: April 06, 2011, 08:26:51 AM »

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
Logged
therise
Occasional poster
*
Offline Offline

Malaysia Malaysia

Posts: 14


View Profile Email
« Reply #2 on: April 06, 2011, 09:02:49 AM »

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  Grin
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #3 on: April 07, 2011, 07:14:32 AM »

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? Smiley

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

Follow members gave a thank to your post:

therise

For this post, 1 member gave a thank you!
Logged
therise
Occasional poster
*
Offline Offline

Malaysia Malaysia

Posts: 14


View Profile Email
« Reply #4 on: April 07, 2011, 07:18:02 AM »

i tot that i did it wrongly... but i did right way with wrong script... LOL... thanks rojetto!!! u always the best!!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 19, 2012, 11:48:15 PM