Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
Godlike VPS
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Provider Poll 2024 - The Results

1112113115117118139

Comments

  • DecicusDecicus Member
    edited February 2025

    115

    Thanked by 3beanman109 Blembim _MS_
  • plumbergplumberg Veteran, Megathread Squad

    @lukast__ said:
    Well, I need to do rate-limiting for a small website @host_c asked me to write, is there any efficient and easy way to do this with PHP that doesn't involve fail2ban/a firewall and allows me to handle any IPv6 in a /64 as a single IP and automatically re-allow the IPs after a certain time? At the moment I'm doing it with a json file in a ramdisk but that feels wrong and inefficient.


    Not going to say more about the website...

    Caddy?

  • lukast__lukast__ Member, Megathread Squad
    edited February 2025

    @beanman109 said:

    @beanman109 said:

    @lukast__ said:
    Well, I need to do rate-limiting for a small website @host_c asked me to write, is there any efficient and easy way to do this with PHP that doesn't involve fail2ban/a firewall and allows me to handle any IPv6 in a /64 as a single IP and automatically re-allow the IPs after a certain time? At the moment I'm doing it with a json file in a ramdisk but that feels wrong and inefficient.


    Not going to say more about the website...

    gpt is considering rate-limiting options...

    @lukast__ what are you thoughts on redis?

    Haven't used it and IMHO it seems a bit overkill to install a db engine for rate-limiting. Thanks anyway!

    @FAT32 said:

    @lukast__ said:
    Well, I need to do rate-limiting for a small website @host_c asked me to write, is there any efficient and easy way to do this with PHP that doesn't involve fail2ban/a firewall and allows me to handle any IPv6 in a /64 as a single IP and automatically re-allow the IPs after a certain time? At the moment I'm doing it with a json file in a ramdisk but that feels wrong and inefficient.


    Not going to say more about the website...

    Just hook it to nginx and set a rate limit: https://nginx.org/en/docs/http/ngx_http_limit_req_module.html

    Am already using it so will go with it. Doesn't seem to be able to handle IPv6 subnets though, but I'll ignore that for now as there's anyway no real way to determine whether IPs belong to a particular host because basically anyone can get a /40 or lower for cheap. Thanks!

    @Decicus said:

    @lukast__ said:
    Well, I need to do rate-limiting for a small website @host_c asked me to write, is there any efficient and easy way to do this with PHP that doesn't involve fail2ban/a firewall and allows me to handle any IPv6 in a /64 as a single IP and automatically re-allow the IPs after a certain time? At the moment I'm doing it with a json file in a ramdisk but that feels wrong and inefficient.


    Not going to say more about the website...

    Are you limited to only having PHP and filesystem access? How about Redis or any form of SQL database?

    Also, not sure if you had already handled how to deal with IPv6 subnets, but I believe I used https://github.com/mlocati/ip-lib a few years ago doing something similar (or maybe that was just IPv4).

    I'm not limited to anything at all, but I think a db is a bit overkill. But thanks!

    @plumberg said:

    @lukast__ said:
    Well, I need to do rate-limiting for a small website @host_c asked me to write, is there any efficient and easy way to do this with PHP that doesn't involve fail2ban/a firewall and allows me to handle any IPv6 in a /64 as a single IP and automatically re-allow the IPs after a certain time? At the moment I'm doing it with a json file in a ramdisk but that feels wrong and inefficient.


    Not going to say more about the website...

    Caddy?

    Well, I don't really want to switch the webserver... Thanks anyway!


    For now I'll go with the nginx limiting feature (have actually used it in the past I think), and if brute-forcing gets too much, maybe I'll simply disable IPv6 (sorry yoursunny).

  • @lukast__ said: I'm not limited to anything at all, but I think a db is a bit overkill. But thanks!

    I agree, but reading/writing to a JSON file for every request (ramdisk or not) seems extremely cursed. :joy:

    Thanked by 1lukast__
  • beanman109beanman109 Member, Host Rep, Megathread Squad

    @Decicus said:

    @lukast__ said: I'm not limited to anything at all, but I think a db is a bit overkill. But thanks!

    I agree, but reading/writing to a JSON file for every request (ramdisk or not) seems extremely cursed. :joy:

    get a USB and write only to that, more or less cursed, thoughts?

  • @beanman109 said:

    @Decicus said:

    @lukast__ said: I'm not limited to anything at all, but I think a db is a bit overkill. But thanks!

    I agree, but reading/writing to a JSON file for every request (ramdisk or not) seems extremely cursed. :joy:

    get a USB and write only to that, more or less cursed, thoughts?

    RAID0 between a USB stick and MicroSD card for the speed boost

    Thanked by 2lukast__ beanman109
  • lukast__lukast__ Member, Megathread Squad

    @Decicus said:

    @lukast__ said: I'm not limited to anything at all, but I think a db is a bit overkill. But thanks!

    I agree, but reading/writing to a JSON file for every request (ramdisk or not) seems extremely cursed. :joy:

    Totally agree, that's why I asked.
    And the most efficient way does seem to be the nginx module because it doesn't even leave the webserver, and the PHP daemon isn't invoked.

  • beanman109beanman109 Member, Host Rep, Megathread Squad

    i only run my database applications through something connected with USB 2.0 for maximum stability

    Thanked by 2Decicus lukast__
  • host_chost_c Patron Provider, Top Host, Megathread Squad
    edited February 2025

    :D :D :D

    This is gonna be funnnnnnn :D :D

    @lukast__ - <3 >:)

    This will pair excelent with this VPS, I apologize, it will not be Prod ready for this weekend :'(

    Yeah, I know, lame......

    Test            | Value
    
    Single Core     | 2225
    Multi Core      | 4012
    

    I need to come up with something for tomorrow.....

  • FAT32FAT32 Administrator, Deal Compiler Extraordinaire

    @lukast__ said: Am already using it so will go with it. Doesn't seem to be able to handle IPv6 subnets though, but I'll ignore that for now as there's anyway no real way to determine whether IPs belong to a particular host because basically anyone can get a /40 or lower for cheap. Thanks!

    I found an interesting way to make use of map, can consider using it to extract only the first 8 bytes of $binary_remote_addr: https://stackoverflow.com/a/60477076

    (In the case of IPv6, $binary_remote_addr will be 16 bytes)

  • DecicusDecicus Member
    edited February 2025

    @host_c said: it will not be Prod ready for this weekend

    It doesn't need to be "prod ready" for idling. As long as I can YABS it once and pay for it for the next 6 months without logging in ever, it's fine.

  • beanman109beanman109 Member, Host Rep, Megathread Squad

    @lukast__ gpt also said it can be done with php APCu whatever the fuck that is

    Thanked by 3lukast__ Decicus admax
  • FAT32FAT32 Administrator, Deal Compiler Extraordinaire

    @host_c said:

    :D :D :D

    This is gonna be funnnnnnn :D :D

    @lukast__ - <3 >:)

    This will pair excelent with this VPS, I apologize, it will not be Prod ready for this weekend :'(

    Yeah, I know, lame......

    Test            | Value
    
    Single Core     | 2225
    Multi Core      | 4012
    

    I need to come up with something for tomorrow.....

    WHERE DEALS

  • @host_c said:

    :D :D :D

    This is gonna be funnnnnnn :D :D

    @lukast__ - <3 >:)

    This will pair excelent with this VPS, I apologize, it will not be Prod ready for this weekend :'(

    Yeah, I know, lame......

    Test            | Value
    
    Single Core     | 2225
    Multi Core      | 4012
    

    I need to come up with something for tomorrow.....

    have preorder deals? :p

    Thanked by 2host_c Decicus
  • host_chost_c Patron Provider, Top Host, Megathread Squad
    edited February 2025

    @Decicus said: It doesn't need to be "prod ready" for idling. As long as I can YABS it once and pay for it for the next 6 months, it's fine.

    :D :D :D

    RAM did not arrive on time for today Maitenance, so I will have to power it off next week.

    My conscious does not let me sell services that I will power off in a few days for maintenance. o:)

  • beanman109beanman109 Member, Host Rep, Megathread Squad

    @host_c can you start offering SBC/rasp pi co-location plz

  • host_chost_c Patron Provider, Top Host, Megathread Squad

    @gritty said: have preorder deals? :p

    nahhhh, that's no fun, fun is when you pay it and get it in ~1 minute ( unless the provisioning module fucks up, then it is ~ 10 minutes :D )

  • host_chost_c Patron Provider, Top Host, Megathread Squad

    @beanman109 said: @host_c can you start offering SBC/rasp pi co-location plz

    I can offer almost anything, as long as it is Rack Mountable, they do not let me SHELF the SHIT :'(

  • @host_c said: My conscious does not let me sell services that I will power off in a few days for maintenance. o:)

    You don't have to sell the services, could always give them for free

  • grittygritty Member
    edited February 2025

    @host_c said:

    @gritty said: have preorder deals? :p

    nahhhh, that's no fun, fun is when you pay it and get it in ~1 minute ( unless the provisioning module fucks up, then it is ~ 10 minutes :D )

    :p

  • host_chost_c Patron Provider, Top Host, Megathread Squad

    @Decicus said: You don't have to sell the services, could always give them for free

    :D :D :D

  • FAT32FAT32 Administrator, Deal Compiler Extraordinaire

    @host_c said:

    @gritty said: have preorder deals? :p

    nahhhh, that's no fun, fun is when you pay it and get it in ~1 minute ( unless the provisioning module fucks up, then it is ~ 10 minutes :D )

    Just so you know... the fun is actually seeing the coupon successfully applied and placing the order, not the provisioning part

  • host_chost_c Patron Provider, Top Host, Megathread Squad

    @host_c said:

    @beanman109 said: @host_c can you start offering SBC/rasp pi co-location plz

    I can offer almost anything, as long as it is Rack Mountable, they do not let me SHELF the SHIT :'(

    I could do that in the smaller site we have, but that is only IPV6

  • beanman109beanman109 Member, Host Rep, Megathread Squad
    edited February 2025

    @host_c said:

    @beanman109 said: @host_c can you start offering SBC/rasp pi co-location plz

    I can offer almost anything, as long as it is Rack Mountable, they do not let me SHELF the SHIT :'(

    so what you're saying is i can colocate 5 of them instead?

  • FAT32FAT32 Administrator, Deal Compiler Extraordinaire

    I take the rat on bottom left to be "FK32"

  • I think I smell a deal :D

    Thanked by 2FAT32 Decicus
  • host_chost_c Patron Provider, Top Host, Megathread Squad

    @FAT32 said: Just so you know... the fun is actually seeing the coupon successfully applied and placing the order, not the provisioning part

    So all I need is to sell applied cupons??? why the hack didn't you say so 2Yr back????

    Now he tells me, after spending $$$ on servers rather then just selling cupons.

    @fat32 <3 :* :D :D :D

  • host_chost_c Patron Provider, Top Host, Megathread Squad
    edited February 2025

    @beanman109 said: so what you're saying is i get colocate 5 of them instead?

    Yeah, that would not be a problem actually.

This discussion has been closed.