Nginx blocks mobile(pc) access

V Records 2,938 Views No comment

Sometimes because of the demand, we need to distinguish between the PC side and the mobile side of the visitor.
Here are a few simple ways to introduce:

Nginx Block mobile access:

otherwise Nginx Block PC access:

I met a friend today and need to block PC visitors, but he need to specify a directory to not block PC visitors.
After some testing, the following methods are feasible:
Do not block the test_admin directory

Simple record, in case of need.

This article was first published by V on 2018-10-18 and can be reprinted with permission, but please be sure to indicate the original link address of the article :

Leave a Reply

Your email address will not be published. Required fields are marked *