adsense_crawler_for_private 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,6 @@ module AdsenseCrawlerForPrivate
|
|
22
22
|
if (name == AdsenseCrawlerForPrivate.crawler_name and
|
23
23
|
password == Digest::SHA1.hexdigest(AdsenseCrawlerForPrivate.crawler_password) and
|
24
24
|
expiry_time > Time.now and
|
25
|
-
request.remote_addr == remote_addr and
|
26
25
|
self.ip_check(request))
|
27
26
|
login_ok = true
|
28
27
|
self.logger.warn "login_check was ok for #{name}"
|
@@ -31,7 +30,11 @@ module AdsenseCrawlerForPrivate
|
|
31
30
|
self.logger.warn "login_check problem parsing cookie json: #{e.inspect}"
|
32
31
|
ensure
|
33
32
|
unless login_ok
|
34
|
-
|
33
|
+
info_str = "login_check wasn't ok, even though cookie was found."
|
34
|
+
info_str += "warning: ip was not accepted" unless self.ip_check(request)
|
35
|
+
|
36
|
+
self.logger.warn info_str
|
37
|
+
|
35
38
|
cookies.delete(AdsenseCrawlerForPrivate.cookie_name)
|
36
39
|
end
|
37
40
|
end
|
data/test/dummy/log/test.log
CHANGED
@@ -7214,3 +7214,378 @@ Started GET "/adsense_crawler_for_private/login" for 127.0.0.1 at Fri Dec 30 17:
|
|
7214
7214
|
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7215
7215
|
AdsenseCrawlerForPrivate: AdsenseCrawlerForPrivate not configured, no password given.
|
7216
7216
|
Completed 401 Unauthorized in 0ms (Views: 0.2ms)
|
7217
|
+
|
7218
|
+
|
7219
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:25:34 +0200 2011
|
7220
|
+
Processing by MainController#forbidden_render as HTML
|
7221
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7222
|
+
Completed 302 Found in 0ms
|
7223
|
+
|
7224
|
+
|
7225
|
+
Started GET "/normal_render" for 127.0.0.1 at Fri Dec 30 17:25:34 +0200 2011
|
7226
|
+
Processing by MainController#normal_render as HTML
|
7227
|
+
Completed 200 OK in 6ms (Views: 6.2ms)
|
7228
|
+
|
7229
|
+
|
7230
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:25:34 +0200 2011
|
7231
|
+
Processing by MainController#forbidden_render as HTML
|
7232
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","546db79890f56b2c624a219eb438bf620da4f0a0","Sun, 01 Jan 2012 15:25:34 GMT","127.0.0.1"]
|
7233
|
+
AdsenseCrawlerForPrivate: login_check wasn't ok, even though cookie was found.
|
7234
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7235
|
+
Completed 302 Found in 1ms
|
7236
|
+
|
7237
|
+
|
7238
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:25:34 +0200 2011
|
7239
|
+
Processing by MainController#forbidden_render as HTML
|
7240
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","crawler_password_TEST","Wed, 28 Dec 2011 15:25:34 GMT","127.0.0.1"]
|
7241
|
+
AdsenseCrawlerForPrivate: login_check wasn't ok, even though cookie was found.
|
7242
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7243
|
+
Completed 302 Found in 0ms
|
7244
|
+
|
7245
|
+
|
7246
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:25:34 +0200 2011
|
7247
|
+
Processing by MainController#forbidden_render as HTML
|
7248
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","546db79890f56b2c624a219eb438bf620da4f0a0","Sun, 01 Jan 2012 15:25:34 GMT","127.0.0.1"]
|
7249
|
+
AdsenseCrawlerForPrivate: login_check was ok for craw_name_TEST
|
7250
|
+
Completed 200 OK in 1ms (Views: 0.2ms)
|
7251
|
+
|
7252
|
+
|
7253
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:25:34 +0200 2011
|
7254
|
+
Processing by MainController#forbidden_render as HTML
|
7255
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","546db79890f56b2c624a219eb438bf620da4f0a0","Sun, 01 Jan 2012 15:25:34 GMT","127.0.0.1"]
|
7256
|
+
AdsenseCrawlerForPrivate: login_check was ok for craw_name_TEST
|
7257
|
+
Completed 200 OK in 1ms (Views: 0.2ms)
|
7258
|
+
|
7259
|
+
|
7260
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:25:34 +0200 2011
|
7261
|
+
Processing by MainController#forbidden_render as HTML
|
7262
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","546db79890f56b2c624a219eb438bf620da4f0a0","Sun, 01 Jan 2012 15:25:34 GMT","127.0.0.1"]
|
7263
|
+
AdsenseCrawlerForPrivate: login_check wasn't ok, even though cookie was found.warning: ip was not accepted
|
7264
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7265
|
+
Completed 302 Found in 1ms
|
7266
|
+
|
7267
|
+
|
7268
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:25:34 +0200 2011
|
7269
|
+
Processing by MainController#forbidden_render as HTML
|
7270
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["not_allowed_crawler","crawler_password_TEST","Sun, 01 Jan 2012 15:25:34 GMT","127.0.0.1"]
|
7271
|
+
AdsenseCrawlerForPrivate: login_check wasn't ok, even though cookie was found.
|
7272
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7273
|
+
Completed 302 Found in 1ms
|
7274
|
+
|
7275
|
+
|
7276
|
+
Started GET "/adsense_crawler_for_private/login?password=[FILTERED]&name=craw_name_TEST" for 127.0.0.1 at Fri Dec 30 17:25:34 +0200 2011
|
7277
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7278
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7279
|
+
Completed 500 Internal Server Error in 62ms
|
7280
|
+
|
7281
|
+
|
7282
|
+
Started GET "/adsense_crawler_for_private/login?password=[FILTERED]&name=craw_name_TEST" for 127.0.0.1 at Fri Dec 30 17:25:35 +0200 2011
|
7283
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7284
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7285
|
+
AdsenseCrawlerForPrivate: login successfully. Crawler_name: craw_name_TEST
|
7286
|
+
Completed 200 OK in 3ms (Views: 2.0ms)
|
7287
|
+
|
7288
|
+
|
7289
|
+
Started GET "/adsense_crawler_for_private/login?password=[FILTERED]&name=craw_name_TEST" for 127.0.0.1 at Fri Dec 30 17:25:35 +0200 2011
|
7290
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7291
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7292
|
+
Completed 500 Internal Server Error in 21ms
|
7293
|
+
|
7294
|
+
|
7295
|
+
Started POST "/adsense_crawler_for_private/login" for 127.0.0.1 at Fri Dec 30 17:25:35 +0200 2011
|
7296
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7297
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7298
|
+
Completed 500 Internal Server Error in 70ms
|
7299
|
+
|
7300
|
+
|
7301
|
+
Started GET "/adsense_crawler_for_private/login?password=[FILTERED]&name=craw_name_TEST" for 127.0.0.1 at Fri Dec 30 17:25:35 +0200 2011
|
7302
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7303
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7304
|
+
AdsenseCrawlerForPrivate: login unsuccessful. Crawler_name: craw_name_TEST, crawler_password: wrong_pass, crawler_ip: 127.0.0.1
|
7305
|
+
Completed 401 Unauthorized in 1ms (Views: 0.8ms)
|
7306
|
+
|
7307
|
+
|
7308
|
+
Started GET "/adsense_crawler_for_private/login" for 127.0.0.1 at Fri Dec 30 17:25:35 +0200 2011
|
7309
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7310
|
+
AdsenseCrawlerForPrivate: AdsenseCrawlerForPrivate not configured, no password given.
|
7311
|
+
Completed 401 Unauthorized in 1ms (Views: 0.7ms)
|
7312
|
+
|
7313
|
+
|
7314
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:27:17 +0200 2011
|
7315
|
+
Processing by MainController#forbidden_render as HTML
|
7316
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7317
|
+
Completed 302 Found in 0ms
|
7318
|
+
|
7319
|
+
|
7320
|
+
Started GET "/normal_render" for 127.0.0.1 at Fri Dec 30 17:27:17 +0200 2011
|
7321
|
+
Processing by MainController#normal_render as HTML
|
7322
|
+
Completed 200 OK in 5ms (Views: 4.9ms)
|
7323
|
+
|
7324
|
+
|
7325
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:27:17 +0200 2011
|
7326
|
+
Processing by MainController#forbidden_render as HTML
|
7327
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","546db79890f56b2c624a219eb438bf620da4f0a0","Sun, 01 Jan 2012 15:27:17 GMT","127.0.0.1"]
|
7328
|
+
AdsenseCrawlerForPrivate: login_check wasn't ok, even though cookie was found.
|
7329
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7330
|
+
Completed 302 Found in 1ms
|
7331
|
+
|
7332
|
+
|
7333
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:27:17 +0200 2011
|
7334
|
+
Processing by MainController#forbidden_render as HTML
|
7335
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","crawler_password_TEST","Wed, 28 Dec 2011 15:27:17 GMT","127.0.0.1"]
|
7336
|
+
AdsenseCrawlerForPrivate: login_check wasn't ok, even though cookie was found.
|
7337
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7338
|
+
Completed 302 Found in 0ms
|
7339
|
+
|
7340
|
+
|
7341
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:27:17 +0200 2011
|
7342
|
+
Processing by MainController#forbidden_render as HTML
|
7343
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","546db79890f56b2c624a219eb438bf620da4f0a0","Sun, 01 Jan 2012 15:27:17 GMT","127.0.0.1"]
|
7344
|
+
AdsenseCrawlerForPrivate: login_check was ok for craw_name_TEST
|
7345
|
+
Completed 200 OK in 1ms (Views: 0.2ms)
|
7346
|
+
|
7347
|
+
|
7348
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:27:17 +0200 2011
|
7349
|
+
Processing by MainController#forbidden_render as HTML
|
7350
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","546db79890f56b2c624a219eb438bf620da4f0a0","Sun, 01 Jan 2012 15:27:17 GMT","127.0.0.1"]
|
7351
|
+
AdsenseCrawlerForPrivate: login_check was ok for craw_name_TEST
|
7352
|
+
Completed 200 OK in 1ms (Views: 0.2ms)
|
7353
|
+
|
7354
|
+
|
7355
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:27:17 +0200 2011
|
7356
|
+
Processing by MainController#forbidden_render as HTML
|
7357
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","546db79890f56b2c624a219eb438bf620da4f0a0","Sun, 01 Jan 2012 15:27:17 GMT","127.0.0.1"]
|
7358
|
+
AdsenseCrawlerForPrivate: login_check wasn't ok, even though cookie was found.warning: ip was not accepted
|
7359
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7360
|
+
Completed 302 Found in 1ms
|
7361
|
+
|
7362
|
+
|
7363
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:27:17 +0200 2011
|
7364
|
+
Processing by MainController#forbidden_render as HTML
|
7365
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["not_allowed_crawler","crawler_password_TEST","Sun, 01 Jan 2012 15:27:17 GMT","127.0.0.1"]
|
7366
|
+
AdsenseCrawlerForPrivate: login_check wasn't ok, even though cookie was found.
|
7367
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7368
|
+
Completed 302 Found in 0ms
|
7369
|
+
|
7370
|
+
|
7371
|
+
Started GET "/adsense_crawler_for_private/login?password=[FILTERED]&name=craw_name_TEST" for 127.0.0.1 at Fri Dec 30 17:27:17 +0200 2011
|
7372
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7373
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7374
|
+
AdsenseCrawlerForPrivate: login unsuccessful. Crawler_name: craw_name_TEST, crawler_password: crawler_password_TEST, crawler_ip: 1.1.1.1
|
7375
|
+
Completed 401 Unauthorized in 2ms (Views: 1.8ms)
|
7376
|
+
|
7377
|
+
|
7378
|
+
Started GET "/adsense_crawler_for_private/login?password=[FILTERED]&name=craw_name_TEST" for 127.0.0.1 at Fri Dec 30 17:27:17 +0200 2011
|
7379
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7380
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7381
|
+
AdsenseCrawlerForPrivate: login successfully. Crawler_name: craw_name_TEST
|
7382
|
+
Completed 200 OK in 1ms (Views: 0.2ms)
|
7383
|
+
|
7384
|
+
|
7385
|
+
Started GET "/adsense_crawler_for_private/login?password=[FILTERED]&name=craw_name_TEST" for 127.0.0.1 at Fri Dec 30 17:27:17 +0200 2011
|
7386
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7387
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7388
|
+
AdsenseCrawlerForPrivate: login successfully. Crawler_name: craw_name_TEST
|
7389
|
+
Completed 200 OK in 1ms (Views: 0.2ms)
|
7390
|
+
|
7391
|
+
|
7392
|
+
Started POST "/adsense_crawler_for_private/login" for 127.0.0.1 at Fri Dec 30 17:27:17 +0200 2011
|
7393
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7394
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7395
|
+
AdsenseCrawlerForPrivate: login successfully. Crawler_name: craw_name_TEST
|
7396
|
+
Completed 200 OK in 1ms (Views: 0.2ms)
|
7397
|
+
|
7398
|
+
|
7399
|
+
Started GET "/adsense_crawler_for_private/login?password=[FILTERED]&name=craw_name_TEST" for 127.0.0.1 at Fri Dec 30 17:27:17 +0200 2011
|
7400
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7401
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7402
|
+
AdsenseCrawlerForPrivate: login unsuccessful. Crawler_name: craw_name_TEST, crawler_password: wrong_pass, crawler_ip: 127.0.0.1
|
7403
|
+
Completed 401 Unauthorized in 0ms (Views: 0.2ms)
|
7404
|
+
|
7405
|
+
|
7406
|
+
Started GET "/adsense_crawler_for_private/login" for 127.0.0.1 at Fri Dec 30 17:27:17 +0200 2011
|
7407
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7408
|
+
AdsenseCrawlerForPrivate: AdsenseCrawlerForPrivate not configured, no password given.
|
7409
|
+
Completed 401 Unauthorized in 0ms (Views: 0.2ms)
|
7410
|
+
|
7411
|
+
|
7412
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:29:25 +0200 2011
|
7413
|
+
Processing by MainController#forbidden_render as HTML
|
7414
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7415
|
+
Completed 302 Found in 0ms
|
7416
|
+
|
7417
|
+
|
7418
|
+
Started GET "/normal_render" for 127.0.0.1 at Fri Dec 30 17:29:25 +0200 2011
|
7419
|
+
Processing by MainController#normal_render as HTML
|
7420
|
+
Completed 200 OK in 4ms (Views: 3.9ms)
|
7421
|
+
|
7422
|
+
|
7423
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:29:25 +0200 2011
|
7424
|
+
Processing by MainController#forbidden_render as HTML
|
7425
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","546db79890f56b2c624a219eb438bf620da4f0a0","Sun, 01 Jan 2012 15:29:25 GMT","127.0.0.1"]
|
7426
|
+
AdsenseCrawlerForPrivate: login_check wasn't ok, even though cookie was found.
|
7427
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7428
|
+
Completed 302 Found in 1ms
|
7429
|
+
|
7430
|
+
|
7431
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:29:25 +0200 2011
|
7432
|
+
Processing by MainController#forbidden_render as HTML
|
7433
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","crawler_password_TEST","Wed, 28 Dec 2011 15:29:25 GMT","127.0.0.1"]
|
7434
|
+
AdsenseCrawlerForPrivate: login_check wasn't ok, even though cookie was found.
|
7435
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7436
|
+
Completed 302 Found in 0ms
|
7437
|
+
|
7438
|
+
|
7439
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:29:25 +0200 2011
|
7440
|
+
Processing by MainController#forbidden_render as HTML
|
7441
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","546db79890f56b2c624a219eb438bf620da4f0a0","Sun, 01 Jan 2012 15:29:25 GMT","127.0.0.1"]
|
7442
|
+
AdsenseCrawlerForPrivate: login_check was ok for craw_name_TEST
|
7443
|
+
Completed 200 OK in 1ms (Views: 0.2ms)
|
7444
|
+
|
7445
|
+
|
7446
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:29:25 +0200 2011
|
7447
|
+
Processing by MainController#forbidden_render as HTML
|
7448
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","546db79890f56b2c624a219eb438bf620da4f0a0","Sun, 01 Jan 2012 15:29:25 GMT","199.199.199.199"]
|
7449
|
+
AdsenseCrawlerForPrivate: login_check wasn't ok, even though cookie was found.warning: ip was not accepted
|
7450
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7451
|
+
Completed 302 Found in 1ms
|
7452
|
+
|
7453
|
+
|
7454
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:29:25 +0200 2011
|
7455
|
+
Processing by MainController#forbidden_render as HTML
|
7456
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["not_allowed_crawler","crawler_password_TEST","Sun, 01 Jan 2012 15:29:25 GMT","127.0.0.1"]
|
7457
|
+
AdsenseCrawlerForPrivate: login_check wasn't ok, even though cookie was found.
|
7458
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7459
|
+
Completed 302 Found in 0ms
|
7460
|
+
|
7461
|
+
|
7462
|
+
Started GET "/adsense_crawler_for_private/login?password=[FILTERED]&name=craw_name_TEST" for 127.0.0.1 at Fri Dec 30 17:29:25 +0200 2011
|
7463
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7464
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7465
|
+
AdsenseCrawlerForPrivate: login unsuccessful. Crawler_name: craw_name_TEST, crawler_password: crawler_password_TEST, crawler_ip: 1.1.1.1
|
7466
|
+
Completed 401 Unauthorized in 2ms (Views: 1.7ms)
|
7467
|
+
|
7468
|
+
|
7469
|
+
Started GET "/adsense_crawler_for_private/login?password=[FILTERED]&name=craw_name_TEST" for 127.0.0.1 at Fri Dec 30 17:29:25 +0200 2011
|
7470
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7471
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7472
|
+
AdsenseCrawlerForPrivate: login successfully. Crawler_name: craw_name_TEST
|
7473
|
+
Completed 200 OK in 1ms (Views: 0.2ms)
|
7474
|
+
|
7475
|
+
|
7476
|
+
Started GET "/adsense_crawler_for_private/login?password=[FILTERED]&name=craw_name_TEST" for 127.0.0.1 at Fri Dec 30 17:29:25 +0200 2011
|
7477
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7478
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7479
|
+
AdsenseCrawlerForPrivate: login successfully. Crawler_name: craw_name_TEST
|
7480
|
+
Completed 200 OK in 1ms (Views: 0.2ms)
|
7481
|
+
|
7482
|
+
|
7483
|
+
Started POST "/adsense_crawler_for_private/login" for 127.0.0.1 at Fri Dec 30 17:29:25 +0200 2011
|
7484
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7485
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7486
|
+
AdsenseCrawlerForPrivate: login successfully. Crawler_name: craw_name_TEST
|
7487
|
+
Completed 200 OK in 1ms (Views: 0.2ms)
|
7488
|
+
|
7489
|
+
|
7490
|
+
Started GET "/adsense_crawler_for_private/login?password=[FILTERED]&name=craw_name_TEST" for 127.0.0.1 at Fri Dec 30 17:29:25 +0200 2011
|
7491
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7492
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7493
|
+
AdsenseCrawlerForPrivate: login unsuccessful. Crawler_name: craw_name_TEST, crawler_password: wrong_pass, crawler_ip: 127.0.0.1
|
7494
|
+
Completed 401 Unauthorized in 0ms (Views: 0.2ms)
|
7495
|
+
|
7496
|
+
|
7497
|
+
Started GET "/adsense_crawler_for_private/login" for 127.0.0.1 at Fri Dec 30 17:29:25 +0200 2011
|
7498
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7499
|
+
AdsenseCrawlerForPrivate: AdsenseCrawlerForPrivate not configured, no password given.
|
7500
|
+
Completed 401 Unauthorized in 0ms (Views: 0.2ms)
|
7501
|
+
|
7502
|
+
|
7503
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:30:31 +0200 2011
|
7504
|
+
Processing by MainController#forbidden_render as HTML
|
7505
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7506
|
+
Completed 302 Found in 0ms
|
7507
|
+
|
7508
|
+
|
7509
|
+
Started GET "/normal_render" for 127.0.0.1 at Fri Dec 30 17:30:31 +0200 2011
|
7510
|
+
Processing by MainController#normal_render as HTML
|
7511
|
+
Completed 200 OK in 5ms (Views: 4.7ms)
|
7512
|
+
|
7513
|
+
|
7514
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:30:31 +0200 2011
|
7515
|
+
Processing by MainController#forbidden_render as HTML
|
7516
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","546db79890f56b2c624a219eb438bf620da4f0a0","Sun, 01 Jan 2012 15:30:31 GMT","127.0.0.1"]
|
7517
|
+
AdsenseCrawlerForPrivate: login_check wasn't ok, even though cookie was found.
|
7518
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7519
|
+
Completed 302 Found in 1ms
|
7520
|
+
|
7521
|
+
|
7522
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:30:31 +0200 2011
|
7523
|
+
Processing by MainController#forbidden_render as HTML
|
7524
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","crawler_password_TEST","Wed, 28 Dec 2011 15:30:31 GMT","127.0.0.1"]
|
7525
|
+
AdsenseCrawlerForPrivate: login_check wasn't ok, even though cookie was found.
|
7526
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7527
|
+
Completed 302 Found in 1ms
|
7528
|
+
|
7529
|
+
|
7530
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:30:31 +0200 2011
|
7531
|
+
Processing by MainController#forbidden_render as HTML
|
7532
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","546db79890f56b2c624a219eb438bf620da4f0a0","Sun, 01 Jan 2012 15:30:31 GMT","127.0.0.1"]
|
7533
|
+
AdsenseCrawlerForPrivate: login_check was ok for craw_name_TEST
|
7534
|
+
Completed 200 OK in 1ms (Views: 0.2ms)
|
7535
|
+
|
7536
|
+
|
7537
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:30:31 +0200 2011
|
7538
|
+
Processing by MainController#forbidden_render as HTML
|
7539
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["craw_name_TEST","546db79890f56b2c624a219eb438bf620da4f0a0","Sun, 01 Jan 2012 15:30:31 GMT","199.199.199.199"]
|
7540
|
+
AdsenseCrawlerForPrivate: login_check wasn't ok, even though cookie was found.warning: ip was not accepted
|
7541
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7542
|
+
Completed 302 Found in 1ms
|
7543
|
+
|
7544
|
+
|
7545
|
+
Started GET "/forbidden_render" for 127.0.0.1 at Fri Dec 30 17:30:31 +0200 2011
|
7546
|
+
Processing by MainController#forbidden_render as HTML
|
7547
|
+
AdsenseCrawlerForPrivate: login_check: cookie found ["not_allowed_crawler","crawler_password_TEST","Sun, 01 Jan 2012 15:30:31 GMT","127.0.0.1"]
|
7548
|
+
AdsenseCrawlerForPrivate: login_check wasn't ok, even though cookie was found.
|
7549
|
+
Redirected to http://www.you-were-not-logged-in.inv
|
7550
|
+
Completed 302 Found in 1ms
|
7551
|
+
|
7552
|
+
|
7553
|
+
Started GET "/adsense_crawler_for_private/login?password=[FILTERED]&name=craw_name_TEST" for 127.0.0.1 at Fri Dec 30 17:30:31 +0200 2011
|
7554
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7555
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7556
|
+
AdsenseCrawlerForPrivate: login unsuccessful. Crawler_name: craw_name_TEST, crawler_password: crawler_password_TEST, crawler_ip: 1.1.1.1
|
7557
|
+
Completed 401 Unauthorized in 2ms (Views: 2.0ms)
|
7558
|
+
|
7559
|
+
|
7560
|
+
Started GET "/adsense_crawler_for_private/login?password=[FILTERED]&name=craw_name_TEST" for 127.0.0.1 at Fri Dec 30 17:30:31 +0200 2011
|
7561
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7562
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7563
|
+
AdsenseCrawlerForPrivate: login successfully. Crawler_name: craw_name_TEST
|
7564
|
+
Completed 200 OK in 1ms (Views: 0.2ms)
|
7565
|
+
|
7566
|
+
|
7567
|
+
Started GET "/adsense_crawler_for_private/login?password=[FILTERED]&name=craw_name_TEST" for 127.0.0.1 at Fri Dec 30 17:30:31 +0200 2011
|
7568
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7569
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7570
|
+
AdsenseCrawlerForPrivate: login successfully. Crawler_name: craw_name_TEST
|
7571
|
+
Completed 200 OK in 1ms (Views: 0.3ms)
|
7572
|
+
|
7573
|
+
|
7574
|
+
Started POST "/adsense_crawler_for_private/login" for 127.0.0.1 at Fri Dec 30 17:30:31 +0200 2011
|
7575
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7576
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7577
|
+
AdsenseCrawlerForPrivate: login successfully. Crawler_name: craw_name_TEST
|
7578
|
+
Completed 200 OK in 1ms (Views: 0.3ms)
|
7579
|
+
|
7580
|
+
|
7581
|
+
Started GET "/adsense_crawler_for_private/login?password=[FILTERED]&name=craw_name_TEST" for 127.0.0.1 at Fri Dec 30 17:30:31 +0200 2011
|
7582
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7583
|
+
Parameters: {"name"=>"craw_name_TEST", "password"=>"[FILTERED]"}
|
7584
|
+
AdsenseCrawlerForPrivate: login unsuccessful. Crawler_name: craw_name_TEST, crawler_password: wrong_pass, crawler_ip: 127.0.0.1
|
7585
|
+
Completed 401 Unauthorized in 0ms (Views: 0.2ms)
|
7586
|
+
|
7587
|
+
|
7588
|
+
Started GET "/adsense_crawler_for_private/login" for 127.0.0.1 at Fri Dec 30 17:30:31 +0200 2011
|
7589
|
+
Processing by AdsenseCrawlerForPrivate::AdsenseCrawlerLoginController#login as HTML
|
7590
|
+
AdsenseCrawlerForPrivate: AdsenseCrawlerForPrivate not configured, no password given.
|
7591
|
+
Completed 401 Unauthorized in 0ms (Views: 0.2ms)
|
@@ -36,19 +36,9 @@ class FilteringHelperTest < ActionDispatch::IntegrationTest
|
|
36
36
|
####################################
|
37
37
|
# INVALID IP TESTS
|
38
38
|
|
39
|
-
test "specific render for logged crawler but with changed ip" do
|
40
|
-
set_login_cookie
|
41
|
-
|
42
|
-
ActionDispatch::Request.any_instance.stubs(:remote_addr).returns("192.168.0.1")
|
43
|
-
|
44
|
-
get 'forbidden_render'
|
45
|
-
|
46
|
-
assert_response :redirect, "should not render private page"
|
47
|
-
end
|
48
|
-
|
49
39
|
test "specific render for logged crawler but with not allowed ip" do
|
50
|
-
set_login_cookie
|
51
40
|
AdsenseCrawlerForPrivate.ip_ranges = [IPAddr.new("199.199.199.199")]
|
41
|
+
set_login_cookie(@crawler_name, @crawler_password, "199.199.199.199")
|
52
42
|
|
53
43
|
get 'forbidden_render'
|
54
44
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adsense_crawler_for_private
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
- 0
|
9
8
|
- 1
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 1.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Olli Huotari
|