Sponsored Content
Top Forums Web Development Discrepancies Between Our Mobile Detection Code and Google Analytics Regarding Chinese User Agents Post 303040224 by Neo on Friday 25th of October 2019 06:09:01 AM
Old 10-25-2019
Here is a link to a similar discussion about the same Chinese bots, identified as "mobile devices" by our system which have been hammering the site of late:

Blocking aggressive Chinese crawlers/scrapers/bots - John Large - Technology, Hardware,Web Development, Digital Privacy & Ethics

So far, I am just sending many of these UAs to 403, but may come up with some better idea after more logging and analysis.

I am not keen on "mass blocking" but these bots are really extreme and the IP addresses are changing so much that IP address blocking will not work; so I have to block based on UA.
 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SED Search and Replace Question for Google Analytics

Well, I'm losing my regex ability in sed! Please help. I need to search for this text in multiple html files in a directory: </body> and add the following lines in front of the text above: <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> ... (11 Replies)
Discussion started by: Neo
11 Replies

2. Google Chrome OS

Google Chrome Mobile?

I know that Google Chrome came out with the Android under a Unix based system, but did it come out yet for Windows Mobile? I have Windows Mobile 6 on my device. (0 Replies)
Discussion started by: Anna Hussie
0 Replies

3. Shell Programming and Scripting

User Agents Identifier

Hi, Can anyone help me write a script tp determine the web browser from a user agent. A user agent is stored in a file and consists of hundreds of lines e.g. 37050 Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko 29404 Mozilla/5.0 (Windows NT 6.3; WOW64)... (4 Replies)
Discussion started by: cyberfrog
4 Replies

4. Web Development

Quick Fix for Google Search Console "Page is not mobile friendly"

Over the past 10 plus years, we have countless posts where the user did not use CODE tags or they used ICODE tags incorrectly. This has has the results of this site penalized by Google for having pages which are "not mobile friendly". So, working quietly in the background, in the thankless... (0 Replies)
Discussion started by: Neo
0 Replies

5. What is on Your Mind?

Google Search Console - Mobile Usability - No Errors or Issues - New Milestone

For the first time in the history of the site Google Search Console (GSC) has unix.com showing "no mobile viewability errors". This is no small achievement considering the hundreds of thousand of lines of legacy code we run at a site which has been around much longer than Facebook or LinkedIn: ... (0 Replies)
Discussion started by: Neo
0 Replies
STREAM_SET_BLOCKING(3)							 1						    STREAM_SET_BLOCKING(3)

stream_set_blocking - Set blocking/non-blocking mode on a stream

SYNOPSIS
bool stream_set_blocking (resource $stream, int $mode) DESCRIPTION
Sets blocking or non-blocking mode on a $stream. This function works for any stream that supports non-blocking mode (currently, regular files and socket streams). PARAMETERS
o $stream - The stream. o $mode - If $mode is 0, the given stream will be switched to non-blocking mode, and if 1, it will be switched to blocking mode. This affects calls like fgets(3) and fread(3) that read from the stream. In non-blocking mode an fgets(3) call will always return right away while in blocking mode it will wait for data to become available on the stream. RETURN VALUES
Returns TRUE on success or FALSE on failure. NOTES
Note This function was previously called as set_socket_blocking(3) and later socket_set_blocking(3) but this usage is deprecated. SEE ALSO
stream_select(3). PHP Documentation Group STREAM_SET_BLOCKING(3)
All times are GMT -4. The time now is 03:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy