After nginx proxy, get the real IP and do concurrent access restriction (current limiting)

When the site is running, in order to prevent DDoS attacks or data bursts caused by internal interface calls, nginx provides a limit current limiting module: HttpLimitZoneModule limits the number of concurrent accesses at the same time. HttpLimitReqModule limits access to data, up to a few requests per second. 1. Normal configuration: What is a […]

[Restrict input box value type] Custom instruction el-input input type restriction, vue and html versions

Foreword We often encounter input boxes that need to be restricted to numbers. Because the user is outrageous, he insists on entering English or Chinese where the numbers are clearly entered. However, it is more troublesome to use the UI framework or write your own methods to verify the form. It is very troublesome to […]

Web page restriction removal code (oil monkey plug-in) can kill most websites and remove restrictions on copying, cutting, text selection, and right-click menus.

// ==UserScript== // @namespace https://www.github.com/Cat7373/ // @name web page restriction lifted // @name:en Remove web limits // @name:zh Web page restriction lifted // @name:zh-CN Web page restriction lifted // @name:zh-TW Web page restriction lifted // @name:ja ウェブのRegulations are relaxed // @description Kill most websites and remove restrictions on copying, cutting, text selection, and right-click menus. […]

Use Golang to implement HTTP proxy to break through IP access restrictions

Introduction In today’s Internet era, in order to maintain security and protect user privacy, websites and service providers often block or restrict specific IP addresses. However, sometimes we may need to access these restricted websites or services. In order to overcome this restriction, we can use an HTTP proxy to hide the real client IP […]

Using js and css, how to implement restriction operations such as prohibiting copying and prohibiting debugging on the page

When we develop the system, we may receive such requirements: Do not let users copy the text or pictures on the page, do not let users debug our pages, and do not even let users perform printing operations, etc. Doesn’t this sound overwhelming? How can this be achieved? Is this necessary? Can this be banned? […]

Android-Q has restrictions on startActivity(). How to adapt?

1. Q disable background startup Activity Today, let’s talk about the topic of “The impact of the prohibition on starting activities in the background in Android Q on the launch page design of existing domestic apps”, and then talk about the specific details of Android Q’s restriction on starting activities in the background. Some people […]

Access restrictions for classes in Python

Learning Points In Python, class access restrictions can be controlled by using single underscore _ and double underscore __, but this is not strict access control, but a naming convention . Single underscore _ (conventionally private): An underscore prefix indicates that a property or method should be considered for “internal” use. This is just an […]

Apache virtual directory, user authorization restrictions, log segmentation and AWS analysis system

1: Apache connection persistence (long link) #Apache’s connection persistence configuration is in the /usr/lcoal/httpd/conf/extra/httpd-default.conf configuration file # The apache service installed using yum is in the main configuration file /etc/httpd/conf/httpd.conf vim /usr/local/httpd/conf/extra/httpd-default.conf Timeout 60 #The timeout between two TCP packets. If this time is exceeded, the connection will be disconnected. ? KeepAliveOn #Turn on the […]

[Comprehensive explanation of Linux commands] 108. How to implement disk quota management and user restrictions

Article directory quota Additional information grammar Options parameter Example Learn `python` from scratch quota Display disk used space and limits Supplementary instructions The quota command is used to display the disk quota information of a user or workgroup. Output information includes disk usage and quota limits. Grammar quota(option)(parameter) Options -g: List the disk space limit […]

docker_Create nginx container to forward tomcat page, including nginx access restrictions

Insert code snippet here# nginx forward plus Create a network to enable nginx to forward the tomcat page and restrict access View mirror [root@7_docker ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE nginx latest eea7b3dcba7e 7 days ago 187MB tomcat latest 74c40fb60535 9 days ago 429MB Create docker network and view [root@7_docker ~]# docker […]