forked from florianoverkamp/yourls-abusedesk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-sample.php
More file actions
31 lines (25 loc) · 876 Bytes
/
config-sample.php
File metadata and controls
31 lines (25 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
//
// Configuration settings for Abusedesk plugin for Yourls - URL Shortener
// Copyright (c) 2010, Florian Overkamp <florian@tty.nu>
//
// Define the BLOCKED table to mark URL's disabled.
//
if( !defined('YOURLS_DB_TABLE_BLOCKED') )
define('YOURLS_DB_TABLE_BLOCKED', YOURLS_DB_PREFIX.'blocked');
if( !defined('YOURLS_DB_TABLE_BANNED') )
define('YOURLS_DB_TABLE_BANNED', YOURLS_DB_PREFIX.'banned');
// Settings for using Google Safe Browsing with phpgsb
//
if (file_exists(dirname(__FILE__).'/phpgsb/phpgsb.class.php')) {
// define('GSB_APIKEY', 'YOUR GOOGLE SAFEBROWSING API KEY HERE');
}
// No user serviceable parts below
//
// Enable phpgsb if a key is defined
if (defined('GSB_APIKEY') ) {
require_once("phpgsb/phpgsb.class.php");
}
// Redirect phishing links to an educational page
//
define('YOURLS_PHISHING_EDUCATION', 'http://education.apwg.org/r/');