Currently Viewing Posts Tagged api

Report the bad IP address to the AbuseIPDB

I have a VPS on DigitalOcean.  Web server is Nginx web server. I checked the web server log files, including an access log and error log.

The error log always gives information about the strange activities from some IP address.

2019/03/17 03:08:02 [error] 781#781: *140434 access forbidden by rule, client: 183.240.196.121, server: www.yinfor.com, request: "HEAD //com/.zip HTTP/1.1", host: "www.yinfor.com", referrer: "http://www.yinfor.com//com/.zip"
2019/03/17 03:08:04 [error] 781#781: *140451 access forbidden by rule, client: 183.240.196.121, server: www.yinfor.com, request: "HEAD //com/..zip HTTP/1.1", host: "www.yinfor.com", referrer: "http://www.yinfor.com//com/..zip"
2019/03/17 03:08:06 [error] 781#781: *140452 access forbidden by rule, client: 183.240.196.121, server: www.yinfor.com, request: "HEAD //www.yinfor.com/..zip HTTP/1.1", host: "www.yinfor.com", referrer: "http://www.yinfor.com//www.yinfor.com/..zip"
2019/03/17 03:08:07 [error] 781#781: *140453 access forbidden by rule, client: 183.240.196.121, server: www.yinfor.com, request: "HEAD //com/.rar HTTP/1.1", host: "www.yinfor.com", referrer: "http://www.yinfor.com//com/.rar"
2019/03/17 03:08:08 [error] 781#781: *140454 access forbidden by rule, client: 183.240.196.121, server: www.yinfor.com, request: "HEAD //com/..rar HTTP/1.1", host: "www.yinfor.com", referrer: "http://www.yinfor.com//com/..rar"
2019/03/17 03:08:10 [error] 781#781: *140456 access forbidden by rule, client: 183.240.196.121, server: www.yinfor.com, request: "HEAD //www.yinfor.com/..rar HTTP/1.1", host: "www.yinfor.com", referrer: "http://www.yinfor.com//www.yinfor.com/..rar"
2019/03/17 06:10:41 [error] 781#781: *145806 access forbidden by rule, client: 192.99.35.63, server: www.yinfor.com, request: "GET /wp-content/uploads/2019/03/settings_auto.php HTTP/1.1", host: "www.yinfor.com"
2019/03/17 13:21:35 [error] 781#781: *160016 access forbidden by rule, client: 139.99.121.91, server: www.yinfor.com, request: "GET /.htaccess?c=askjhGQVFcrwqevq&q=ZWNobyA0Mzc0NTc1NDc7 HTTP/1.1", host: "www.yinfor.com"
2019/03/17 13:22:21 [error] 781#781: *160124 access forbidden by rule, client: 139.99.121.91, server: www.yinfor.com, request: "GET /.well-known.zip HTTP/1.1", host: "www.yinfor.com"
2019/03/17 13:22:22 [error] 781#781: *160125 access forbidden by rule, client: 139.99.121.91, server: www.yinfor.com, request: "GET /.well-known.tar.gz HTTP/1.1", host: "www.yinfor.com"
2019/03/17 13:22:22 [error] 781#781: *160126 access forbidden by rule, client: 139.99.121.91, server: www.yinfor.com, request: "GET /.well-known.gz HTTP/1.1", host: "www.yinfor.com"

You can see the URL requested is so strange. Actually, I banned these IP address already. So the Nginx server recorded the access forbidden log.

I am not banning these IP address, but also want to report it to the AbusedIPDB.

When finding a bad IP address, I will sign in the AbuseIPDB site and report it.

Please enter the information of the behave and the details of the IP log.

 

AbuseIPDB is not just a reporting tool. The registered users can also use its API to check the IP if it is bad or spam IP. It works with Fail2Ban.

CDN77.com – API 2.0 Release!

Got email from CDN77. It announced that API 2.0 released.

Much more API features are now available. We worked hard so that we could give a positive answer to your most frequent questions:

“Can I create / edit / delete a CDN resource through API?”

YES! You can manage your CDN resources (incl. Live Streaming) easily with API.

“Can I integrate the reports to my internal tools using API?”

YES! All the data we provide you with in the Reports section + Logs are now reachable through API.

“Can I make changes to my account via API?”

YES! You can edit all the account details including the billing and invoicing section.

cdn77-api-2

More details of API 2.0, check the Documents.

Google Chart API

Google introduced it Chart API last December.
For reference, I noted here my tips.
I need a 3D Pie chart. The code should looks like below:

<img src=”https://chart.apis.google.com/chart?cht=p3&chd=t:50,10,40&chs=500×200&chl=PR|HTTP Status|Whois”/>


The code can break down as shown here:
“cht=p3” is the chart type, in this case, a 3D pie chart.
“chd=t:50,10,40” are the chart values, text-encoded, and separated by a comma.
The number should be ranged from 0 to 100.
“chs=500×200” is the custom chart size, 500 by 200 pixels.
“chl=PR|HTTP Status|Whois” are the different labels for the pie chart sections, separated via the pipe character. Chinese is not supported by Chart API.
chart types include: line charts, bar charts, pie charts, Venn diagrams & scatterplots.

Google and Zend – Zend Google Data Client Library

Zend Google Data Client Library is released on Oct. 31, 2006.
It is a new GData API for Php developer. It provide a simple standard protocol and writing data on the web. For example, Google Base, Calendar, Blogger, and CodeSearch each have a data API following the Google Data protocol.
To get this Gdata tool, click here.
The most interest thing is Google Account Authentication.
I plan to build a online Poll system. If I can integrate this system with Google Account, it will be much easy for users.

Continue reading “Google and Zend – Zend Google Data Client Library”

  • Archives