Skip to content

Commit

Permalink
Add goog-unwanted-shavar to default range lists
Browse files Browse the repository at this point in the history
  • Loading branch information
samcleaver committed Mar 27, 2015
1 parent b614747 commit 67109b8
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2010-2014, Sam Cleaver
Copyright (c) 2010-2015, Sam Cleaver
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The main class is definitely not as efficient as it could be and has developed v
$ composer require samcleaver/phpgsb
```

* You could manually download phpgsb by this link: https://github.com/samcleaver/phpGSB/archive/0.2.5.zip
* You could manually download phpgsb by this link: https://github.com/samcleaver/phpGSB/archive/0.2.6.zip

## Installation

Expand All @@ -38,7 +38,7 @@ $ composer require samcleaver/phpgsb
The phpGSB library is released under the New BSD License.

```
Copyright (c) 2010-2014, Sam Cleaver
Copyright (c) 2010-2015, Sam Cleaver
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"keywords":["php","google","gsf", "google safe browsing"],
"type":"library",
"license":"BSD-3-Clause",
"version": "0.2.5",
"version": "0.2.6",
"authors":[
{
"name":"Sam Cleaver",
Expand Down
4 changes: 2 additions & 2 deletions install.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
/*
phpGSB - PHP Google Safe Browsing Implementation
Released under New BSD License (see LICENSE)
Copyright (c) 2010-2012, Sam Cleaver (Beaver6813, Beaver6813.com)
Copyright (c) 2010-2015, Sam Cleaver (Beaver6813, Beaver6813.com)
All rights reserved.
INITIAL INSTALLER - RUN ONCE (or more than once if you're adding a new list!)
*/
require("phpgsb.class.php");
$phpgsb = new phpGSB("DATABASE_NAME","DATABASE_USERNAME","DATABASE_PASSWORD");
$phpgsb->usinglists = array('googpub-phish-shavar','goog-malware-shavar');
$phpgsb->usinglists = array('googpub-phish-shavar','goog-malware-shavar', 'goog-unwanted-shavar');
//Install MySQL tables
foreach($phpgsb->usinglists as $value)
{
Expand Down
4 changes: 2 additions & 2 deletions listupdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
phpGSB - PHP Google Safe Browsing Implementation
Released under New BSD License (see LICENSE)
Copyright (c) 2010-2012, Sam Cleaver (Beaver6813, Beaver6813.com)
Copyright (c) 2010-2015, Sam Cleaver (Beaver6813, Beaver6813.com)
All rights reserved.
UPDATER EXAMPLE
Expand All @@ -11,7 +11,7 @@
$phpgsb = new phpGSB("DATABASE_NAME","DATABASE_USERNAME","DATABASE_PASSWORD");
//Obtain an API key from: http://code.google.com/apis/safebrowsing/key_signup.html
$phpgsb->apikey = "API_KEY_HERE";
$phpgsb->usinglists = array('googpub-phish-shavar','goog-malware-shavar');
$phpgsb->usinglists = array('googpub-phish-shavar','goog-malware-shavar', 'goog-unwanted-shavar');
$phpgsb->runUpdate();
$phpgsb->close();
?>
4 changes: 2 additions & 2 deletions lookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
phpGSB - PHP Google Safe Browsing Implementation
Released under New BSD License (see LICENSE)
Copyright (c) 2010-2012, Sam Cleaver (Beaver6813, Beaver6813.com)
Copyright (c) 2010-2015, Sam Cleaver (Beaver6813, Beaver6813.com)
All rights reserved.
LOOKUP EXAMPLE
Expand All @@ -11,7 +11,7 @@
$phpgsb = new phpGSB("DATABASE_NAME","DATABASE_USERNAME","DATABASE_PASSWORD");
//Obtain an API key from: http://code.google.com/apis/safebrowsing/key_signup.html
$phpgsb->apikey = "API_KEY_HERE";
$phpgsb->usinglists = array('googpub-phish-shavar','goog-malware-shavar');
$phpgsb->usinglists = array('googpub-phish-shavar','goog-malware-shavar', 'goog-unwanted-shavar');
//Should return false (not phishing or malware)
var_dump($phpgsb->doLookup('http://www.google.com'));
//Should return true, malicious URL
Expand Down
8 changes: 4 additions & 4 deletions phpgsb.class.php
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<?php
/*
phpGSB - PHP Google Safe Browsing Implementation
Version 0.2.5
Version 0.2.6
Released under New BSD License (see LICENSE)
Copyright (c) 2010-2014, Sam Cleaver (Beaver6813, Beaver6813.com)
Copyright (c) 2010-2015, Sam Cleaver (Beaver6813, Beaver6813.com)
All rights reserved.
*/
class phpGSB
{
var $apikey = "";
var $version = "0.2";
var $realversion= "0.2.5";
var $realversion= "0.2.6";
//DO NOT CHANGE API VERSION
var $apiversion = "2.2";

var $ob = "";
var $adminemail = "";
var $usinglists = array('googpub-phish-shavar','goog-malware-shavar');
var $usinglists = array('googpub-phish-shavar','goog-malware-shavar', 'goog-unwanted-shavar');
var $mainlist = array();
var $verbose = true;
var $transtarted= false;
Expand Down

0 comments on commit 67109b8

Please sign in to comment.