Advertisement
Guest User

How to throttle the FCC to dial up modem speeds on your site

a guest
May 10th, 2014
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. # Current known FCC address ranges:
  2. # https://news.ycombinator.com/item?id=7716915
  3. #
  4. # Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
  5. #
  6. # In your nginx.conf:
  7.  
  8. location / {
  9.  
  10. if ( $remote_addr ~* 192.133.125.0/24 ) {
  11. limit_rate 3k;
  12. }
  13.  
  14. if ( $remote_addr ~* 165.135.0.0/16 ) {
  15. limit_rate 3k;
  16. }
  17.  
  18. if ( $remote_addr ~* 192.104.54.0/24 ) {
  19. limit_rate 3k;
  20. }
  21.  
  22. if ( $remote_addr ~* 4.21.126.0/24 ) {
  23. limit_rate 3k;
  24. }
  25.  
  26. if ( $remote_addr ~* 65.125.25.64/26 ) {
  27. limit_rate 3k;
  28. }
  29.  
  30. if ( $remote_addr ~* 208.23.64.0/25 ) {
  31. limit_rate 3k;
  32. }
  33.  
  34. # put the serve files or proxy_pass code here.
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement