mirror of
https://gh.wpcy.net/https://github.com/webguyio/dam-spam.git
synced 2026-05-25 03:03:57 +08:00
1315 lines
No EOL
24 KiB
PHP
1315 lines
No EOL
24 KiB
PHP
<?php
|
||
|
||
if ( !defined( 'ABSPATH' ) ) {
|
||
status_header( 404 );
|
||
exit;
|
||
}
|
||
|
||
class dam_spam_get_options {
|
||
public function process( $ip, &$stats = array(), &$options = array(), &$post = array() ) {
|
||
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
||
$options = get_option( 'dam_spam_options' );
|
||
$defaultWL = array(
|
||
'check_good_cache' => 'Y',
|
||
'check_admin_log' => 'Y',
|
||
'check_allow_list' => 'Y',
|
||
'check_allow_list_ip' => 'Y',
|
||
'check_allow_list_email' => 'Y',
|
||
'check_allowed_email' => 'Y',
|
||
'check_allowed_user_id' => 'N',
|
||
'check_misc_allow_list' => 'Y',
|
||
'check_google' => 'Y',
|
||
'check_cloudflare' => 'Y',
|
||
'check_aws' => 'N',
|
||
'check_paypal' => 'Y',
|
||
'check_stripe' => 'Y',
|
||
'check_authorize_net' => 'Y',
|
||
'check_braintree' => 'Y',
|
||
'check_recurly' => 'Y',
|
||
'check_square' => 'Y',
|
||
'check_scripts' => 'Y',
|
||
'check_valid_ip' => 'Y',
|
||
'check_form' => ( is_plugin_active( 'woocommerce/woocommerce.php' ) ) ? 'Y' : 'N',
|
||
'check_credit_card' => 'Y',
|
||
'check_woo_form' => 'N',
|
||
'check_gravity_form' => 'N',
|
||
'check_wp_form' => 'N',
|
||
'dam_spam_private_mode' => 'N'
|
||
);
|
||
$defaultBL = array(
|
||
'check_bad_cache' => 'Y',
|
||
'check_blocked_email' => 'Y',
|
||
'check_blocked_ip' => 'Y',
|
||
'check_blocked_user_id' => 'N',
|
||
'check_invalid_ip' => 'Y',
|
||
'check_admin' => 'Y',
|
||
'check_accept' => 'Y',
|
||
'check_referer' => 'Y',
|
||
'check_session' => 'Y',
|
||
'check_disposable' => 'Y',
|
||
'check_long' => 'Y',
|
||
'check_short' => 'Y',
|
||
'check_bbcode' => 'Y',
|
||
'check_periods' => 'Y',
|
||
'check_hyphens' => 'Y',
|
||
'check_exploits' => 'Y',
|
||
'check_urls' => 'Y',
|
||
'check_spam_words' => 'Y',
|
||
'check_url_short' => 'Y',
|
||
'check_tld' => 'Y',
|
||
'check_agent' => 'Y',
|
||
'check_vpn' => 'N',
|
||
'check_tor' => 'N',
|
||
'check_ubiquity' => 'Y',
|
||
'check_hosting' => 'Y',
|
||
'check_amazon' => 'N',
|
||
'check_akismet' => 'Y',
|
||
'check_404' => 'Y',
|
||
'check_multi' => 'Y',
|
||
'check_dnsbl' => 'Y',
|
||
'check_sfs' => 'Y',
|
||
'check_honeypot' => 'Y',
|
||
'check_botscout' => 'Y',
|
||
'check_google_safe' => 'N'
|
||
);
|
||
$defaultsCTRL = array(
|
||
'check_email' => 'Y',
|
||
'check_ip' => 'Y',
|
||
'check_comments' => 'Y',
|
||
'check_signup' => 'Y',
|
||
'check_xmlrpc' => 'Y',
|
||
'check_wpmail' => 'Y',
|
||
'add_to_allow_list' => 'Y',
|
||
'allow_list_request_email' => '',
|
||
'allow_list_request' => 'Y',
|
||
'redir' => 'N',
|
||
'check_captcha' => 'N',
|
||
'check_xff' => 'N',
|
||
'notify' => 'N',
|
||
'email_request' => 'N',
|
||
'check_spoof' => 'N',
|
||
'filter_registrations' => 'Y',
|
||
'require_activation' => 'N',
|
||
'activation_auto_delete' => 'N'
|
||
);
|
||
$defaultARRAY = array(
|
||
'block_list' => array(),
|
||
'allow_list' => array(),
|
||
'bad_tlds' => array(),
|
||
'bad_agents' => array(
|
||
"Abonti",
|
||
"aggregator",
|
||
"AhrefsBot",
|
||
"asterias",
|
||
"BDCbot",
|
||
"BLEXBot",
|
||
"BuiltBotTough",
|
||
"Bullseye",
|
||
"BunnySlippers",
|
||
"ca-crawler",
|
||
"CCBot",
|
||
"Cegbfeieh",
|
||
"CheeseBot",
|
||
"CherryPicker",
|
||
"CherryPickerElite",
|
||
"CherryPickerSE",
|
||
"CopyRightCheck",
|
||
"cosmos",
|
||
"Crescent Internet ToolPak",
|
||
"Crescent",
|
||
"discobot",
|
||
"DittoSpyder",
|
||
"DOC",
|
||
"DotBot",
|
||
"Download Ninja",
|
||
"EasouSpider",
|
||
"EmailCollector",
|
||
"EmailSiphon",
|
||
"EmailWolf",
|
||
"EroCrawler",
|
||
"Exabot",
|
||
"ExtractorPro",
|
||
"Fasterfox",
|
||
"FeedBooster",
|
||
"Foobot",
|
||
"Genieo",
|
||
"grub-client",
|
||
"Harvest",
|
||
"hloader",
|
||
"httplib",
|
||
"HTTrack",
|
||
"humanlinks",
|
||
"ieautodiscovery",
|
||
"InfoNaviRobot",
|
||
"IstellaBot",
|
||
"Java/1.",
|
||
"JennyBot",
|
||
"k2spider",
|
||
"Kenjin Spider",
|
||
"Keyword Density/0.9",
|
||
"larbin",
|
||
"LexiBot",
|
||
"libWeb",
|
||
"libwww",
|
||
"LinkextractorPro",
|
||
"linko",
|
||
"LinkScan/8.1a Unix",
|
||
"LinkWalker",
|
||
"LNSpiderguy",
|
||
"lwp-trivial",
|
||
"lwp-trivial",
|
||
"magpie",
|
||
"Mata Hari",
|
||
'MaxPointCrawler',
|
||
'MegaIndex',
|
||
"Microsoft URL Control",
|
||
"MIIxpc",
|
||
"Mippin",
|
||
"Missigua Locator",
|
||
"Mister PiX",
|
||
"MJ12bot",
|
||
"moget",
|
||
"MSIECrawler",
|
||
"NetAnts",
|
||
"NICErsPRO",
|
||
"Niki-Bot",
|
||
"NPBot",
|
||
"Nutch",
|
||
"Offline Explorer",
|
||
"Openfind data gathere",
|
||
"Openfind",
|
||
'panscient.com',
|
||
"PHP/5.{",
|
||
"ProPowerBot/2.14",
|
||
"ProWebWalker",
|
||
"Python-urllib",
|
||
"QueryN Metasearch",
|
||
"RepoMonkey",
|
||
"RepoMonkey",
|
||
"RMA",
|
||
'SemrushBot',
|
||
"SeznamBot ",
|
||
"SISTRIX",
|
||
"sitecheck.Internetseer.com",
|
||
"SiteSnagger",
|
||
"SnapPreviewBot",
|
||
"Sogou",
|
||
"SpankBot",
|
||
"spanner",
|
||
"spbot",
|
||
"Spinn3r",
|
||
"suzuran",
|
||
"Szukacz/1.4",
|
||
"Teleport Pro/1.29",
|
||
"Teleport",
|
||
"TeleportPro",
|
||
"Telesoft",
|
||
"The Intraformant",
|
||
"TheNomad",
|
||
"TightTwatBot",
|
||
"Titan",
|
||
"toCrawl/UrlDispatcher",
|
||
"True_Robot",
|
||
"True_Robot/1.0",
|
||
"turingos",
|
||
"TurnitinBot",
|
||
"UbiCrawler",
|
||
"UnisterBot",
|
||
"URLy Warning",
|
||
"VCI WebViewer VCI WebViewer Win32",
|
||
"VCI",
|
||
"WBSearchBot",
|
||
"Web Downloader/6.9",
|
||
"Web Image Collector",
|
||
"WebAuto",
|
||
"WebBandit",
|
||
"WebBandit/3.50",
|
||
"WebCopier v4.0",
|
||
"WebCopier",
|
||
"WebEnhancer",
|
||
"WebmasterWorldForumBot",
|
||
"WebReaper",
|
||
"WebSauger",
|
||
"Website Quester",
|
||
"Webster Pro",
|
||
"WebStripper",
|
||
"WebZip",
|
||
"Wotbox",
|
||
"wsr-agent",
|
||
"WWW-Collector-E",
|
||
"Xenu",
|
||
"yandex",
|
||
"Zao",
|
||
"Zeus",
|
||
"Zeus",
|
||
"ZyBORG",
|
||
'coccoc',
|
||
'Incutio',
|
||
'lmspider',
|
||
'memoryBot',
|
||
'SemrushBot',
|
||
'serf',
|
||
'Unknown',
|
||
'uptime files'
|
||
),
|
||
'spam_words' => array(
|
||
'-online',
|
||
'#1',
|
||
'$$$',
|
||
'100% free',
|
||
'100% more',
|
||
'100% satisfied',
|
||
'4-u',
|
||
'4u',
|
||
'Accept credit cards',
|
||
'Act now',
|
||
'Additional income',
|
||
'additional-income',
|
||
'adipex',
|
||
'advicer',
|
||
'air max',
|
||
'All new',
|
||
'allstate',
|
||
'ambien',
|
||
'Apply now',
|
||
'As seen on',
|
||
'baccarrat',
|
||
'BackPage Ads Posting',
|
||
'BackPage Posting',
|
||
'barbour northumbria',
|
||
'Bargain',
|
||
'Be your own boss',
|
||
'Become a member',
|
||
'Beneficiary',
|
||
'Best price',
|
||
'Big bucks',
|
||
'Billing',
|
||
'bingo',
|
||
'blackjack',
|
||
'bllogspot',
|
||
'Bonus',
|
||
'booker',
|
||
'Bulk email',
|
||
'Buy direct',
|
||
'byob',
|
||
'Call now',
|
||
'Cancel at any time',
|
||
'car-rental-e-site',
|
||
'car-rentals-e-site',
|
||
'Cards accepted',
|
||
'carisoprodol',
|
||
'Cash bonus',
|
||
'Cash',
|
||
'casino',
|
||
'Cents on the dollar',
|
||
'Certified',
|
||
'chatroom',
|
||
'Cheap',
|
||
'Check or money order',
|
||
'cialis',
|
||
'Claims',
|
||
'Clearance',
|
||
'Click below',
|
||
'Click here',
|
||
'Collect your prize',
|
||
'Compare rates',
|
||
'Confidentiality',
|
||
'Congratulations',
|
||
'Consolidate debt',
|
||
'coolhu',
|
||
'CraigsList Ads Posting',
|
||
'Credit card offers',
|
||
'credit-card-debt',
|
||
'credit-report',
|
||
'Cures baldness',
|
||
'Cures',
|
||
'cwas',
|
||
'cyclen',
|
||
'cyclobenzaprine',
|
||
'dating-e-site',
|
||
'day-trading',
|
||
'Deal',
|
||
'Dear friend',
|
||
'Dear Friend',
|
||
'debt-consolidation',
|
||
'Debt',
|
||
'Direct email',
|
||
'Direct marketing',
|
||
'Discount',
|
||
'discreetordering',
|
||
'Do it today',
|
||
'Don’t delete',
|
||
'Double your cash',
|
||
'Double your income',
|
||
'duty-free',
|
||
'dutyfree',
|
||
'Earn extra cash',
|
||
'Earn money',
|
||
'Easy date',
|
||
'Eliminate bad credit',
|
||
'Email harvest',
|
||
'email-marketing',
|
||
'equityloans',
|
||
'Exclusive deal',
|
||
'Expect to earn',
|
||
'Extra cash',
|
||
'Extra income',
|
||
'extra-income',
|
||
'Fantastic',
|
||
'Fast cash',
|
||
'fast-cash',
|
||
'Financial freedom',
|
||
'Financial Schemes',
|
||
'fioricet',
|
||
'flowers-leading-site',
|
||
'Free access',
|
||
'Free consultation',
|
||
'Free gift card',
|
||
'Free gift',
|
||
'Free hosting',
|
||
'Free info',
|
||
'Free investment',
|
||
'Free membership',
|
||
'Free money',
|
||
'Free preview',
|
||
'Free quote',
|
||
'Free trial',
|
||
'freenet-shopping',
|
||
'freenet',
|
||
'Full refund',
|
||
'gambling-',
|
||
'Get it now',
|
||
'Get out of debt',
|
||
'Get paid',
|
||
'Get started now',
|
||
'Giveaway',
|
||
'Guaranteed',
|
||
'hair-loss',
|
||
'health-insurancedeals',
|
||
'Hidden charges',
|
||
'holdem',
|
||
'Home based business',
|
||
'Home based',
|
||
'home security systems',
|
||
'home-based',
|
||
'homebased',
|
||
'homeequityloans',
|
||
'homefinance',
|
||
'Hot men',
|
||
'Hot women',
|
||
'hotel-dealse-site',
|
||
'hotele-site',
|
||
'hotelse-site',
|
||
'Human growth hormone',
|
||
'Important information regarding',
|
||
'In accordance with laws',
|
||
'incest',
|
||
'Income from home',
|
||
'Income',
|
||
'Increase sales',
|
||
'Increase sales',
|
||
'Increase traffic',
|
||
'Increase traffic',
|
||
'Incredible deal',
|
||
'Information you requested',
|
||
'Instant',
|
||
'insurance-quotes',
|
||
'insurancedeals',
|
||
'insurnce',
|
||
'Internet marketing',
|
||
'Investment',
|
||
'Join millions',
|
||
'jrcreations',
|
||
'Lead generation',
|
||
'levitra',
|
||
'Lifetime',
|
||
'Limited time',
|
||
'Loans',
|
||
'Lose weight',
|
||
'Lower rates',
|
||
'Lowest price',
|
||
'Luxury',
|
||
'macinstruct',
|
||
'Make $',
|
||
'Make money',
|
||
'Marketing solution',
|
||
'Marketing solutions',
|
||
'Mass email',
|
||
'Meet singles',
|
||
'Message contains',
|
||
'Million dollars',
|
||
'Miracle',
|
||
'Money back',
|
||
'Month trial offer',
|
||
'Mortgage rates',
|
||
'Mortgage',
|
||
'mortgagequotes',
|
||
'Multi-level marketing',
|
||
'Name brand',
|
||
'New customers only',
|
||
'nike',
|
||
'No catch',
|
||
'No cost',
|
||
'No credit check',
|
||
'No fees',
|
||
'No gimmick',
|
||
'No hidden costs',
|
||
'No hidden fees',
|
||
'No interest',
|
||
'No investment',
|
||
'No obligation',
|
||
'No purchase necessary',
|
||
'No questions asked',
|
||
'No strings attached',
|
||
'Not junk',
|
||
'Notspam',
|
||
'Obligation',
|
||
'Offer',
|
||
'Once in a lifetime',
|
||
'One hundred percent free',
|
||
'One time',
|
||
'Online biz opportunity',
|
||
'Online degree',
|
||
'Online marketing',
|
||
'Online pharmacy',
|
||
'online-gambling',
|
||
'onlinegambling',
|
||
'Opportunity',
|
||
'Opt in',
|
||
'Order now',
|
||
'ottawavalleyag',
|
||
'ownsthis',
|
||
'Passwords',
|
||
'paxil',
|
||
'penis',
|
||
'Pennies a day',
|
||
'Perform in bed',
|
||
'pharmacy',
|
||
'phentermine',
|
||
'Please read',
|
||
'poker-chip',
|
||
'poker',
|
||
'Potential earnings',
|
||
'poze',
|
||
'Pre-approved',
|
||
'Prize',
|
||
'Promise',
|
||
'Pure profit',
|
||
'pussy',
|
||
'Quote',
|
||
'Rates',
|
||
'real money',
|
||
'Refinance',
|
||
'Removal',
|
||
'Removes wrinkles',
|
||
'rental-car-e-site',
|
||
'Requires initial investment',
|
||
'Reserves the right',
|
||
'Reverses aging',
|
||
'ringtones',
|
||
'Risk-free',
|
||
'roulette',
|
||
'Satisfaction guaranteed',
|
||
'Save big money',
|
||
'Save up to',
|
||
'Score tonight',
|
||
'Score',
|
||
'Search Engine Optimization',
|
||
'Search engine',
|
||
'See for yourself',
|
||
'Sent in compliance',
|
||
'seo-',
|
||
'shemale',
|
||
'Shox',
|
||
'sibutramine',
|
||
'Sign up free',
|
||
'Sign-up free today',
|
||
'slot-machine',
|
||
'Social security number',
|
||
'Social Security Number',
|
||
'Special promotion',
|
||
'Stock alert',
|
||
'Stop snoring',
|
||
'Subject to…',
|
||
'Take action',
|
||
'Terms and conditions',
|
||
'This isn’t a scam',
|
||
'This isn’t junk',
|
||
'This isn’t spam',
|
||
'This won’t last',
|
||
'thorcarlson',
|
||
'top-e-site',
|
||
'top-site',
|
||
'tramadol',
|
||
'Trial',
|
||
'trim-spa',
|
||
'ultram',
|
||
'Undisclosed',
|
||
'University diplomas',
|
||
'Unlimited',
|
||
'Unsecured credit',
|
||
'Unsecured debt',
|
||
'Unsolicited',
|
||
'Urgent proposal',
|
||
'Urgent',
|
||
'valeofglamorganconservatives',
|
||
'Valium',
|
||
'viagra',
|
||
'Viagra',
|
||
'Vicodin',
|
||
'vioxx',
|
||
'Warranty',
|
||
'We hate spam',
|
||
'Web traffic',
|
||
'Weight loss',
|
||
'weight-loss',
|
||
'weightloss',
|
||
'What are you waiting for?',
|
||
'While supplies last',
|
||
'Will not believe your eyes',
|
||
'Winner',
|
||
'Winning',
|
||
'Work from home',
|
||
'work-at-home',
|
||
'workathome',
|
||
'xanax',
|
||
'Xanax',
|
||
'You are a winner',
|
||
'You have been selected',
|
||
'You’re a winner',
|
||
'zolus'
|
||
),
|
||
'block_url_shortners' => array(
|
||
'0rz.tw',
|
||
'1-url.net',
|
||
'126.am',
|
||
'1link.in',
|
||
'1tk.us',
|
||
'1un.fr',
|
||
'1url.com',
|
||
'1url.cz',
|
||
'1wb2.net',
|
||
'2.gp',
|
||
'2.ht',
|
||
'23o.net',
|
||
'2ad.in',
|
||
'2big.at',
|
||
'2doc.net',
|
||
'2fear.com',
|
||
'2pl.us',
|
||
'2tu.us',
|
||
'2ty.in',
|
||
'2u.xf.cz',
|
||
'2ya.com',
|
||
'3ra.be',
|
||
'3x.si',
|
||
'4i.ae',
|
||
'4url.cc',
|
||
'4view.me',
|
||
'5em.cz',
|
||
'5url.net',
|
||
'5z8.info',
|
||
'6fr.ru',
|
||
'6g6.eu',
|
||
'6url.com',
|
||
'7.ly',
|
||
'76.gd',
|
||
'77.ai',
|
||
'7fth.cc',
|
||
'7li.in',
|
||
'7vd.cn',
|
||
'8u.cz',
|
||
'944.la',
|
||
'98.to',
|
||
'AltURL.com',
|
||
'BudURL.com',
|
||
'Buff.ly',
|
||
'BurnURL.com',
|
||
'C-O.IN',
|
||
'ClickMeter.com',
|
||
'DecentURL.com',
|
||
'DigBig.com',
|
||
'Digg.com',
|
||
'DwarfURL.com',
|
||
'EasyURI.com',
|
||
'EasyURL.net',
|
||
'EsyURL.com',
|
||
'Fhurl.com',
|
||
'Fly2.ws',
|
||
'GoWat.ch',
|
||
'Hurl.it',
|
||
'IsCool.net',
|
||
'Just.as',
|
||
'L9.fr',
|
||
'Lvvk.com',
|
||
'MyURL.in',
|
||
'PiURL.com',
|
||
'Profile.to',
|
||
'QLNK.net',
|
||
'Quip-Art.com',
|
||
'RedirX.com',
|
||
'Sharein.com',
|
||
'ShortLinks.co.uk',
|
||
'Shrinkify.com',
|
||
'SimURL.com',
|
||
'StartURL.com',
|
||
'TightURL.com',
|
||
'Tnij.org',
|
||
'To8.cc',
|
||
'TraceURL.com',
|
||
'URL.ie',
|
||
'URLHawk.com',
|
||
'WapURL.co.uk',
|
||
'XeeURL.com',
|
||
'Yep.it',
|
||
'a.co',
|
||
'a.gg',
|
||
'a.nf',
|
||
'a0.fr',
|
||
'a2a.me',
|
||
'abbr.sk',
|
||
'abbrr.com',
|
||
'ad-med.cz',
|
||
'ad5.eu',
|
||
'ad7.biz',
|
||
'adb.ug',
|
||
'adf.ly',
|
||
'adfa.st',
|
||
'adfly.fr',
|
||
'adfoc.us',
|
||
'adjix.com',
|
||
'adli.pw',
|
||
'admy.link',
|
||
'adv.li',
|
||
'ajn.me',
|
||
'aka.gr',
|
||
'al.ly',
|
||
'alil.in',
|
||
'any.gs',
|
||
'aqva.pl',
|
||
'ares.tl',
|
||
'asso.in',
|
||
'atu.ca',
|
||
'au.ms',
|
||
'ayt.fr',
|
||
'azali.fr',
|
||
'b00.fr',
|
||
'b23.ru',
|
||
'b54.in',
|
||
'bacn.me',
|
||
'baid.us',
|
||
'bc.vc',
|
||
'bee4.biz',
|
||
'bim.im',
|
||
'bit.do',
|
||
'bit.ly',
|
||
'bitly.com',
|
||
'bitw.in',
|
||
'bkite.com',
|
||
'blap.net',
|
||
'ble.pl',
|
||
'blip.tv',
|
||
'bloat.me',
|
||
'boi.re',
|
||
'bote.me',
|
||
'bougn.at',
|
||
'br4.in',
|
||
'brk.to',
|
||
'brzu.net',
|
||
'budurl.com',
|
||
'buk.me',
|
||
'bul.lu',
|
||
'bxl.me',
|
||
'bzh.me',
|
||
'cachor.ro',
|
||
'captur.in',
|
||
'catchylink.com',
|
||
'cbs.so',
|
||
'cbug.cc',
|
||
'cc.cc',
|
||
'ccj.im',
|
||
'cf.ly',
|
||
'cf2.me',
|
||
'cf6.co',
|
||
'chilp.it',
|
||
'cjb.net',
|
||
'clck.ru',
|
||
'cli.gs',
|
||
'clikk.in',
|
||
'cn86.org',
|
||
'coinurl.com',
|
||
'cort.as',
|
||
'couic.fr',
|
||
'cr.tl',
|
||
'cudder.it',
|
||
'cur.lv',
|
||
'curl.im',
|
||
'cut.pe',
|
||
'cut.sk',
|
||
'cutt.eu',
|
||
'cutt.us',
|
||
'cutu.me',
|
||
'cuturl.com',
|
||
'cybr.fr',
|
||
'cyonix.to',
|
||
'd75.eu',
|
||
'daa.pl',
|
||
'dai.ly',
|
||
'dd.ma',
|
||
'ddp.net',
|
||
'decenturl.com',
|
||
'dfl8.me',
|
||
'dft.ba',
|
||
'doiop.com',
|
||
'dolp.cc',
|
||
'dopice.sk',
|
||
'droid.ws',
|
||
'dv.gd',
|
||
'dy.fi',
|
||
'dyo.gs',
|
||
'e37.eu',
|
||
'ecra.se',
|
||
'eepurl.com',
|
||
'ely.re',
|
||
'erax.cz',
|
||
'erw.cz',
|
||
'ewerl.com',
|
||
'ex9.co',
|
||
'ezurl.cc',
|
||
'fa.b',
|
||
'ff.im',
|
||
'fff.re',
|
||
'fff.to',
|
||
'fff.wf',
|
||
'filz.fr',
|
||
'fire.to',
|
||
'firsturl.de',
|
||
'flic.kr',
|
||
'fly2.ws',
|
||
'fnk.es',
|
||
'foe.hn',
|
||
'folu.me',
|
||
'fon.gs',
|
||
'freze.it',
|
||
'fur.ly',
|
||
'fwd4.me',
|
||
'g00.me',
|
||
'gg.gg',
|
||
'git.io',
|
||
'gl.am',
|
||
'go.9nl.com',
|
||
'go2.me',
|
||
'go2cut.com',
|
||
'goo.gl',
|
||
'goo.lu',
|
||
'good.ly',
|
||
'goshrink.com',
|
||
'grem.io',
|
||
'gri.ms',
|
||
'guiama.is',
|
||
'gurl.es',
|
||
'hadej.co',
|
||
'hec.su',
|
||
'hellotxt.com',
|
||
'hex.io',
|
||
'hide.my',
|
||
'hjkl.fr',
|
||
'hops.me',
|
||
'hover.com',
|
||
'href.in',
|
||
'href.li',
|
||
'ht.ly',
|
||
'htxt.it',
|
||
'hugeurl.com',
|
||
'hurl.me',
|
||
'hurl.ws',
|
||
'i-2.co',
|
||
'i99.cz',
|
||
'icanhaz.com',
|
||
'icit.fr',
|
||
'ick.li',
|
||
'icks.ro',
|
||
'idek.net',
|
||
'iiiii.in',
|
||
'iky.fr',
|
||
'ilix.in',
|
||
'info.ms',
|
||
'inreply.to',
|
||
'is.gd',
|
||
'isra.li',
|
||
'iterasi.net',
|
||
'itm.im',
|
||
'ity.im',
|
||
'ix.sk',
|
||
'j.gs',
|
||
'j.mp',
|
||
'jdem.cz',
|
||
'jieb.be',
|
||
'jijr.com',
|
||
'jmp2.net',
|
||
'jp22.net',
|
||
'jqw.de',
|
||
'kask.us',
|
||
'kd2.org',
|
||
'kfd.pl',
|
||
'kissa.be',
|
||
'kl.am',
|
||
'klck.me',
|
||
'korta.nu',
|
||
'kr3w.de',
|
||
'krat.si',
|
||
'kratsi.cz',
|
||
'krod.cz',
|
||
'krunchd.com',
|
||
'kuc.cz',
|
||
'kxb.me',
|
||
'l-k.be',
|
||
'l.gg',
|
||
'lc-s.co',
|
||
'lc.cx',
|
||
'lcut.in',
|
||
'letop10.',
|
||
'libero.it',
|
||
'lick.my',
|
||
'lien.li',
|
||
'lien.pl',
|
||
'liip.to',
|
||
'liltext.com',
|
||
'lin.cr',
|
||
'lin.io',
|
||
'linkbee.com',
|
||
'linkbun.ch',
|
||
'linkn.co',
|
||
'liurl.cn',
|
||
'llu.ch',
|
||
'ln-s.net',
|
||
'ln-s.ru',
|
||
'lnk.co',
|
||
'lnk.gd',
|
||
'lnk.in',
|
||
'lnk.ly',
|
||
'lnk.sk',
|
||
'lnked.in',
|
||
'lnks.fr',
|
||
'lnky.fr',
|
||
'lnp.sn',
|
||
'loopt.us',
|
||
'lp25.fr',
|
||
'lru.jp',
|
||
'lt.tl',
|
||
'lurl.no',
|
||
'lynk.my',
|
||
'm1p.fr',
|
||
'm3mi.com',
|
||
'make.my',
|
||
'mcaf.ee',
|
||
'mdl29.net',
|
||
'metamark.net',
|
||
'mic.fr',
|
||
'migre.me',
|
||
'minilien.com',
|
||
'miniurl.com',
|
||
'minu.me',
|
||
'minurl.fr',
|
||
'moourl.com',
|
||
'more.sh',
|
||
'mut.lu',
|
||
'myurl.in',
|
||
'ne1.net',
|
||
'net.ms',
|
||
'net46.net',
|
||
'nicou.ch',
|
||
'nig.gr',
|
||
'njx.me',
|
||
'nn.nf',
|
||
'notlong.com',
|
||
'nov.io',
|
||
'nq.st',
|
||
'nsfw.in',
|
||
'nxy.in',
|
||
'o-x.fr',
|
||
'okok.fr',
|
||
'om.ly',
|
||
'ou.af',
|
||
'ou.gd',
|
||
'oua.be',
|
||
'ouo.io',
|
||
'ow.ly',
|
||
'p.pw',
|
||
'para.pt',
|
||
'parky.tv',
|
||
'past.is',
|
||
'pd.am',
|
||
'pdh.co',
|
||
'ph.dog',
|
||
'ph.ly',
|
||
'pic.gd',
|
||
'pich.in',
|
||
'pin.st',
|
||
'ping.fm',
|
||
'plots.fr',
|
||
'pm.wu.cz',
|
||
'pnt.me',
|
||
'po.st',
|
||
'poprl.com',
|
||
'post.ly',
|
||
'posted.at',
|
||
'ppfr.it',
|
||
'ppst.me',
|
||
'ppt.cc',
|
||
'ppt.li',
|
||
'prejit.cz',
|
||
'ptab.it',
|
||
'ptm.ro',
|
||
'pw2.ro',
|
||
'py6.ru',
|
||
'q.gs',
|
||
'qbn.ru',
|
||
'qicute.com',
|
||
'qqc.co',
|
||
'qr.net',
|
||
'qrtag.fr',
|
||
'qxp.cz',
|
||
'qxp.sk',
|
||
'rb6.co',
|
||
'rb6.me',
|
||
'rcknr.io',
|
||
'rdz.me',
|
||
'redir.ec',
|
||
'redir.fr',
|
||
'redu.it',
|
||
'ref.so',
|
||
'reise.lc',
|
||
'relink.fr',
|
||
'ri.ms',
|
||
'rickroll.it',
|
||
'riz.cz',
|
||
'riz.gd',
|
||
'rod.gs',
|
||
'roflc.at',
|
||
'rsmonkey.com',
|
||
'rt.se',
|
||
'rt.tc',
|
||
'ru.ly',
|
||
'rubyurl.com',
|
||
's-url.fr',
|
||
's.id',
|
||
's7y.us',
|
||
'safe.mn',
|
||
'sagyap.tk',
|
||
'sdu.sk',
|
||
'seeme.at',
|
||
'segue.se',
|
||
'sh.st',
|
||
'shar.as',
|
||
'sharetabs.com',
|
||
'shorl.com',
|
||
'short.cc',
|
||
'short.ie',
|
||
'short.nr',
|
||
'short.pk',
|
||
'short.to',
|
||
'shorte.st',
|
||
'shortna.me',
|
||
'shorturl.com',
|
||
'shoturl.us',
|
||
'shrinkee.com',
|
||
'shrinkster.com',
|
||
'shrinkurl.in',
|
||
'shrt.in',
|
||
'shrt.st',
|
||
'shrten.com',
|
||
'shrunkin.com',
|
||
'shw.me',
|
||
'shy.si',
|
||
'sicax.net',
|
||
'sina.lt',
|
||
'sk.gy',
|
||
'skr.sk',
|
||
'skroc.pl',
|
||
'smll.co',
|
||
'sn.im',
|
||
'sn.vc',
|
||
'snipr.com',
|
||
'snipurl.com',
|
||
'snsw.us',
|
||
'snurl.com',
|
||
'soo.gd',
|
||
'sp2.ro',
|
||
'spedr.com',
|
||
'spn.sr',
|
||
'sptfy.com',
|
||
'sq6.ru',
|
||
'sqrl.it',
|
||
'ssl.gs',
|
||
'sturly.com',
|
||
'su.pr',
|
||
'surl.me',
|
||
'sux.cz',
|
||
'sy.pe',
|
||
't.cn',
|
||
't.co',
|
||
'ta.gd',
|
||
'tabzi.com',
|
||
'tau.pe',
|
||
'tcrn.ch',
|
||
'tdjt.cz',
|
||
'thesa.us',
|
||
'thinfi.com',
|
||
'thrdl.es',
|
||
'tin.li',
|
||
'tini.cc',
|
||
'tiny.cc',
|
||
'tiny.lt',
|
||
'tiny.ms',
|
||
'tiny.pl',
|
||
'tiny123.com',
|
||
'tinyarro.ws',
|
||
'tinytw.it',
|
||
'tinyuri.ca',
|
||
'tinyurl.com',
|
||
'tinyurl.hu',
|
||
'tinyvid.io',
|
||
'tixsu.com',
|
||
'tldr.sk',
|
||
'tldrify.com',
|
||
'tllg.net',
|
||
'tnij.org',
|
||
'tny.cz',
|
||
'tny.im',
|
||
'to.ly',
|
||
'togoto.us',
|
||
'tohle.de',
|
||
'tpmr.com',
|
||
'tr.im',
|
||
'tr.my',
|
||
'tr5.in',
|
||
'trck.me',
|
||
'trick.ly',
|
||
'trkr.ws',
|
||
'trunc.it',
|
||
'turo.us',
|
||
'tweetburner.com',
|
||
'twet.fr',
|
||
'twi.im',
|
||
'twirl.at',
|
||
'twit.ac',
|
||
'twitterpan.com',
|
||
'twitthis.com',
|
||
'twiturl.de',
|
||
'twlr.me',
|
||
'twurl.cc',
|
||
'twurl.nl',
|
||
'u.mavrev.com',
|
||
'u.nu',
|
||
'u.to',
|
||
'u6e.de',
|
||
'ub0.cc',
|
||
'uby.es',
|
||
'ucam.me',
|
||
'ug.cz',
|
||
'ulmt.in',
|
||
'unlc.us',
|
||
'updating.me',
|
||
'upzat.com',
|
||
'ur1.ca',
|
||
'url.co.uk',
|
||
'url2.fr',
|
||
'url4.eu',
|
||
'url5.org',
|
||
'urlao.com',
|
||
'urlbrief.com',
|
||
'urlcover.com',
|
||
'urlcut.com',
|
||
'urlenco.de',
|
||
'urlin.it',
|
||
'urlkiss.com',
|
||
'urlkr.com',
|
||
'urlot.com',
|
||
'urlpire.com',
|
||
'urls.fr',
|
||
'urlx.ie',
|
||
'urlx.org',
|
||
'urlz.fr',
|
||
'urlzen.com',
|
||
'urub.us',
|
||
'utfg.sk',
|
||
'v.gd',
|
||
'v.ht',
|
||
'v5.gd',
|
||
'vaaa.fr',
|
||
'valv.im',
|
||
'vaza.me',
|
||
'vbly.us',
|
||
'vd55.com',
|
||
'verd.in',
|
||
'vgn.me',
|
||
'virl.com',
|
||
'vl.am',
|
||
'vov.li',
|
||
'vsll.eu',
|
||
'vt802.us',
|
||
'vur.me',
|
||
'vv.vg',
|
||
'w1p.fr',
|
||
'w3t.org',
|
||
'waa.ai',
|
||
'wb1.eu',
|
||
'web99.eu',
|
||
'wed.li',
|
||
'wideo.fr',
|
||
'wipi.es',
|
||
'wp.me',
|
||
'wtc.la',
|
||
'wu.cz',
|
||
'ww7.fr',
|
||
'wwy.me',
|
||
'x.co',
|
||
'x.nu',
|
||
'x.se',
|
||
'x10.mx',
|
||
'x2c.eu',
|
||
'x2c.eumx',
|
||
'xaddr.com',
|
||
'xav.cc',
|
||
'xgd.in',
|
||
'xib.me',
|
||
'xl8.eu',
|
||
'xoe.cz',
|
||
'xr.com',
|
||
'xrl.in',
|
||
'xrl.us',
|
||
'xt3.me',
|
||
'xua.me',
|
||
'xub.me',
|
||
'xurl.jp',
|
||
'xurls.co',
|
||
'xzb.cc',
|
||
'y2u.be',
|
||
'yagoa.fr',
|
||
'yagoa.me',
|
||
'yau.sh',
|
||
'yeca.eu',
|
||
'yect.com',
|
||
'yep.it',
|
||
'yfrog.com',
|
||
'yogh.me',
|
||
'yon.ir',
|
||
'youfap.me',
|
||
'ysear.ch',
|
||
'yweb.com',
|
||
'yyv.co',
|
||
'z9.fr',
|
||
'zSMS.net',
|
||
'zapit.nu',
|
||
'zeek.ir',
|
||
'zi.ma',
|
||
'zi.pe',
|
||
'zip.net',
|
||
'zipmyurl.com',
|
||
'zkr.cz',
|
||
'zkrat.me',
|
||
'zkrt.cz',
|
||
'zoodl.com',
|
||
'zpag.es',
|
||
'zti.me',
|
||
'zxq.net',
|
||
'zyva.org',
|
||
'zz.gd',
|
||
'zzb.bz'
|
||
)
|
||
);
|
||
$defaultSVC = array(
|
||
'apikey' => '',
|
||
'honeyapi' => '',
|
||
'botscoutapi' => '',
|
||
'googleapi' => '',
|
||
'cf_email' => '',
|
||
'cf_api_key' => '',
|
||
'cf_zone_id' => '',
|
||
'cf_block_countries' => 'N',
|
||
'cf_blocked_countries' => array(),
|
||
'turnstileapisecret' => '',
|
||
'turnstileapisite' => '',
|
||
'recaptchaapisecret' => '',
|
||
'recaptchaapisite' => '',
|
||
'hcaptchaapisecret' => '',
|
||
'hcaptchaapisite' => '',
|
||
'sesstime' => 4,
|
||
'sfsfreq' => 0,
|
||
'hnyage' => 9999,
|
||
'botfreq' => 0,
|
||
'sfsage' => 9999,
|
||
'hnylevel' => 5,
|
||
'botage' => 9999,
|
||
'multicount' => 5,
|
||
'multitime' => 3
|
||
);
|
||
$force = true;
|
||
$defaults = array(
|
||
'version' => DAM_SPAM_VERSION,
|
||
'dam_spam_cache' => 25,
|
||
'dam_spam_hist' => 25,
|
||
'dam_spam_good' => 2,
|
||
'dam_spam_cache_em' => 4,
|
||
'redirect_url' => '',
|
||
'log_file_size' => 0,
|
||
'reject_message' => esc_html__( 'Access Blocked', 'dam-spam' )
|
||
);
|
||
$answer = array_merge( $defaultWL, $defaultsCTRL, $defaultBL, $defaultARRAY, $defaultSVC, $defaults );
|
||
if ( empty( $options ) || !is_array( $options ) ) {
|
||
$options = array();
|
||
}
|
||
foreach ( $options as $key => $val ) {
|
||
if ( array_key_exists( $key, $answer ) ) {
|
||
$answer[$key] = $options[$key];
|
||
} else {
|
||
}
|
||
}
|
||
$answer['version'] = DAM_SPAM_VERSION;
|
||
if ( !is_numeric( $answer['botage'] ) ) {
|
||
$answer['botage'] = 9999;
|
||
}
|
||
if ( !is_numeric( $answer['botfreq'] ) ) {
|
||
$answer['botfreq'] = 0;
|
||
}
|
||
if ( !is_numeric( $answer['hnyage'] ) ) {
|
||
$answer['hnyage'] = 9999;
|
||
}
|
||
if ( !is_numeric( $answer['hnylevel'] ) ) {
|
||
$answer['hnylevel'] = 5;
|
||
}
|
||
if ( !is_numeric( $answer['dam_spam_cache'] ) ) {
|
||
$answer['dam_spam_cache'] = 25;
|
||
}
|
||
if ( !is_numeric( $answer['dam_spam_cache_em'] ) ) {
|
||
$answer['dam_spam_cache_em'] = 10;
|
||
}
|
||
if ( !is_numeric( $answer['dam_spam_good'] ) ) {
|
||
$answer['dam_spam_good'] = 2;
|
||
}
|
||
if ( !is_numeric( $answer['dam_spam_hist'] ) ) {
|
||
$answer['dam_spam_hist'] = 25;
|
||
}
|
||
if ( !is_numeric( $answer['sesstime'] ) ) {
|
||
$answer['sesstime'] = 4;
|
||
}
|
||
if ( !is_numeric( $answer['sfsage'] ) ) {
|
||
$answer['sfsage'] = 9999;
|
||
}
|
||
if ( !is_numeric( $answer['sfsfreq'] ) ) {
|
||
$answer['sfsfreq'] = 0;
|
||
}
|
||
if ( !is_numeric( $answer['dam_spam_good'] ) ) {
|
||
$answer['dam_spam_good'] = 0;
|
||
}
|
||
if ( !is_numeric( trim( $answer['log_file_size'] ) ) ) {
|
||
$answer['log_file_size'] = 0;
|
||
}
|
||
$answer['check_cloudflare'] = 'Y';
|
||
dam_spam_set_options( $answer );
|
||
return $answer;
|
||
}
|
||
}
|
||
|
||
?>
|