your site vs. the world

103
YOUR SITE VS. THE WORLD

Upload: jason-cosper

Post on 16-Apr-2017

771 views

Category:

Internet


0 download

TRANSCRIPT

Page 1: Your Site vs. The World

YOUR SITE VS. THE WORLD

Page 2: Your Site vs. The World

HEY THERE.I'M JASON COSPER.

Page 3: Your Site vs. The World

I'M THE SENIOR TECHNOLOGY ADVISOR AT WP ENGINE.

Page 4: Your Site vs. The World

THAT MEANS I GET TO PLAY WITH WORDPRESS

FOR A LIVING.

Page 5: Your Site vs. The World

I ALSO SPEND a lot OF TIMEANALYZING & NEUTRALIZING

SECURITY THREATS.

Page 6: Your Site vs. The World

IF YOU ASK MY WIFE, PROBABLY TOO MUCH TIME.

Page 7: Your Site vs. The World

BUT IT'S REALLY FUN.TO ME, AT LEAST.

Page 8: Your Site vs. The World

ANYWAY.

Page 9: Your Site vs. The World

LET'S TALK ABOUT SPAM.

Page 10: Your Site vs. The World

IT'S THE WORST, RIGHT?

Page 11: Your Site vs. The World

Comment spam is a fact of life if you have a blog.

Page 12: Your Site vs. The World

THAT IS A QUOTE LIFTED DIRECTLY

FROM THE CODEX.

Page 13: Your Site vs. The World

ONE OF THE BIGGEST REFERENCE LIBRARIES OF

ALL THINGS WORDPRESS.

Page 14: Your Site vs. The World

YOU'D BE SURPRISED HOW FEW PEOPLEHAVE TAKEN THE TIME TO SET UP ANTI-SPAM COUNTERMEASURES.

Page 15: Your Site vs. The World

AS WORDPRESS CONTINUES TO TAKE ON THE ROLE OF CMS,

LESS PEOPLE USE IT TO BLOG.

Page 16: Your Site vs. The World

BUT THAT DOESN'T REMOVE THE BLOG FUNCTIONALITY.

IT'S STILL THERE.AND SPAMMERS ARE ITCHING TO HIT IT.

Page 17: Your Site vs. The World

THERE'S VERY LITTLE BUILT INTO WORDPRESS TO BATTLE SPAM.

Page 18: Your Site vs. The World

THAT'S NOT A BAD THING.THE LESS CRUFT IN CORE, THE BETTER.

Page 19: Your Site vs. The World

FORTUNATELY, YOU CAN GAIN A LOT OF GROUNDWITH A FEW SIMPLE CONFIG TWEAKS.

Page 20: Your Site vs. The World

BUT FIRST,LET ME ASK YOU A QUESTION.

Page 21: Your Site vs. The World

ARE COMMENTS EVEN WORTH IT?

Page 22: Your Site vs. The World

OF COURSE!IF YOU HAVE A TRADITIONAL BLOG OR COMMUNITY SITE, THAT IS.

Page 23: Your Site vs. The World

HOW CAN YOU BATTLE SPAMWITH A STOCK INSTALL?

Page 24: Your Site vs. The World

DISCUSSION SETTINGS!

Page 25: Your Site vs. The World

FIRST:Pingbacks & Trackbacks

Page 26: Your Site vs. The World

TRACKBACKS WERE CREATEDalmost 12 years agoTO PROMOTE CONVERSATIONS BETWEEN WEBSITES.

Page 27: Your Site vs. The World

IT WAS A NICE WAY TO SAY"Your post inspired me to write one of my own.

Here's the URL."

Page 28: Your Site vs. The World

BUT THERE WAS NO VERIFICATION.

Page 29: Your Site vs. The World

YOU KNOW WHO LOVES THINGS THAT DON'T REQUIRE

VERIFICATION?

Page 30: Your Site vs. The World

SPAMMERS.

Page 31: Your Site vs. The World

PINGBACKS ADDED A VERIFICATION PROCESS TO COMBAT THIS.BUT THAT DOESN'T MEAN THAT PINGBACKS CAN'T BE SPOOFED.

Page 32: Your Site vs. The World

IF I HAD A NICKEL FOR EVERY SPOOFED PINGBACK I'VE RECEIVED

I COULD AFFORD A BETTER IDIOM.

Page 33: Your Site vs. The World

THIS MIGHT BE ACONTROVERSIAL OPINION BUT...

Page 34: Your Site vs. The World

Pingbacks & Trackbacks are bullshit.

Page 35: Your Site vs. The World

THAT'S WHY I DISABLE THEM.

Page 36: Your Site vs. The World

1. UNCHECK "ALLOW LINK NOTIFICATIONS FROM OTHER BLOGS".

Page 37: Your Site vs. The World

2. DROP THIS CODE INTO YOUR MYSQL CLIENT OF CHOICE.

UPDATE wp_posts SET ping_status='closed' WHERE post_status = 'publish' AND post_type = 'post';UPDATE wp_posts SET ping_status='closed' WHERE post_status = 'publish' AND post_type = 'page';

Page 38: Your Site vs. The World

SECOND:Other comment settings

Page 39: Your Site vs. The World

THE WORDPRESS DEFAULT IS TO CLOSE COMMENTS ON POSTS AFTER 14 DAYS.

BUT THAT CAN BE LIMITING.

Page 40: Your Site vs. The World

MAYBE THAT'S WHY THAT SETTING NEEDS TO BE ENABLED MANUALLY.

Page 41: Your Site vs. The World

I FIND 30 DAYS TO BE A HAPPY MEDIUM.

Page 42: Your Site vs. The World

YOU DON'T have to ENABLE THIS IF YOU HAVE OLDER

POSTS WITH ACTIVE CONVERSATIONS.

Page 43: Your Site vs. The World

BUT IT HELPS.

Page 44: Your Site vs. The World

THIRD:Comment Blacklist

Page 45: Your Site vs. The World

THIS IS the MOST OVERLOOKED SPAM FIGHTING

TOOL IN WORDPRESS.

Page 46: Your Site vs. The World

PROBABLY BECAUSE CREATING & MANAGING A BLACKLIST CAN BE TIME CONSUMING.

Page 47: Your Site vs. The World

WHAT IF I TOLD YOU THERE WAS A SHORTCUT?

Page 48: Your Site vs. The World

THAT'S WHERE THE WORDPRESS COMMENT BLACKLIST COMES IN.HTTP://COSPER.ME/COMMENT-BLACKLIST

Page 49: Your Site vs. The World

119KB OF BEAUTY.AND IT KEEPS GETTING BIGGER & BETTER.

Page 50: Your Site vs. The World

IT BLOCKS...1. Spam keywords

2. Spam URLs3. URL shorteners

4. Non-English comments

Page 51: Your Site vs. The World

ALL YOU HAVE TO DO IS COPY & PASTE IT.

Page 52: Your Site vs. The World

IF WORDPRESS FINDS A MATCH,THE COMMENT GOES TO SPAM.

Page 53: Your Site vs. The World

THESE KEYWORDS PROCESS before AKISMET.THAT MEANS LESS EXTERNAL API CALLS.

Page 54: Your Site vs. The World

AND YOU CAN CUSTOMIZE IT TO YOUR HEART'S CONTENT!

Page 55: Your Site vs. The World

NEED TO ALLOW A URL SHORTENER?REMOVE IT FROM THE BLACKLIST!

Page 56: Your Site vs. The World

CONVERSE IN THAI?GET RID OF THOSE CHARACTERS!

Page 57: Your Site vs. The World

I'VE SEEN FOLKS HAVE A SIGNIFICANT DROP-OFF IN

SPAM USING JUST THIS BLACKLIST.

Page 58: Your Site vs. The World

BUT YOU SHOULD STILL USE AKISMET.

Page 59: Your Site vs. The World

WHY AKISMET?DOESN'T IT, YOU KNOW, COST MONEY?

Page 60: Your Site vs. The World

IF YOU'VE EVER DEALT WITH A SPAM RUN, YOU KNOW HOW crazy town banana pants

IT CAN BE.

Page 61: Your Site vs. The World

IS YOUR SANITY WORTH$5 A MONTH?

Page 62: Your Site vs. The World

MINE'S WORTH A LOT MORE THAN THAT.YOURS SHOULD BE TOO.

Page 63: Your Site vs. The World

AKISMET'S TRUE POWER LIES IN THE NUMBER OF SITES IT'S ACTIVE ON.

Page 64: Your Site vs. The World

THE MORE PEOPLE RUNNING AKISMETTHE MORE SPAM IT SEES.

Page 65: Your Site vs. The World

THE MORE SPAM AKISMET SEESTHE BETTER IT GETS.

Page 66: Your Site vs. The World

AKISMET 3.0 MADE SETUP stupid EASY.

Page 67: Your Site vs. The World

JUST ACTIVATE THE PLUGIN.IT'S INSTALLED BY DEFAULT WITH WORDPRESS.

Page 68: Your Site vs. The World

THEN, GET AN API KEY FOR YOUR SITE.

Page 69: Your Site vs. The World

ONCE AKISMET HAS AN API KEY...

Page 70: Your Site vs. The World

SET IT UP TO DISCARD THE VERY WORST SPAM.

Page 71: Your Site vs. The World

AKISMET HANDLES SPAM SUBMITTED THROUGH...

1. Comment forms2. Contact forms

3. BuddyPress4. bbPress

Page 72: Your Site vs. The World

THAT'S COOL AND ALLBUT WHAT ABOUT SPAM USER REGISTRATIONS?

Page 73: Your Site vs. The World

IF YOU RUN AN OPEN MULTISITE, BUDDYPRESS OR BBPRESS SITESPAM USER REGISTRATIONS ARE PROBABLY THE BANE OF YOUR EXISTENCE.

Page 74: Your Site vs. The World

THERE ARE A COUPLE great PLUGINS THAT FILTER SPAM USER REGISTRATIONS...

▸ WangGuard▸ Anti-Splog

Page 75: Your Site vs. The World

BUT THERE'S ONE THAT I LIKE MORE.

Page 76: Your Site vs. The World

AVH FIRST DEFENSE AGAINST SPAM!THAT NAME IS KIND OF A MOUTHFUL, I KNOW.

Page 77: Your Site vs. The World

AVH DEPENDS ON WIDELY USED, TOTALLY FREE ANTI-SPAM BLACKLISTS.

▸ Stop Forum Spam▸ Project Honey Pot▸ Spamhaus

Page 78: Your Site vs. The World

THESE BLACKLISTS ARE NORMALLY LEVERAGED BY FORUM & EMAIL

ADMINISTRATORS.

Page 79: Your Site vs. The World

MOST SPAM COMES FROM THE SAME PLACE.

NO OFFENSE, CHINA.

Page 80: Your Site vs. The World

AVH ALSO HAS THE ADDED BENEFIT OF TOTALLY BLOCKING TRAFFIC FROM

BLACKLISTED IP ADDRESSES.GTFO, SPAMMERS.

Page 81: Your Site vs. The World

HEADS UP!HOSTS THAT CACHE heavily DON'T PLAY NICELY WITH AVH.A NUMBER OF MANAGED HOSTS LEVERAGE SOME OF THESE BLACKLISTS AT THE SERVER LEVEL.

Page 82: Your Site vs. The World

TO GET THIS WORKINGYOU HAVE TO REGISTER FOR API KEYS FOR TWO OF THE THREE SERVICES.

Page 83: Your Site vs. The World

REGISTER FOR STOP FORUM SPAM ATHTTP://COSPER.ME/SFS-SIGNUP

Page 84: Your Site vs. The World

REGISTER FOR PROJECT HONEY POT ATHTTP://COSPER.ME/PHP-SIGNUP

Page 85: Your Site vs. The World

ALL OF THE DEFAULT THRESHOLDS IN AVH ARE FINE.JUST MAKE SURE TO ENABLE ALL 3 SERVICES IN 3RD PARTY OPTIONS.

Page 86: Your Site vs. The World

DON'T FORGET TO ENABLE THE COMMENT NONCE!

YOU CAN FIND THIS IN AVH'S GENERAL OPTIONS.

Page 87: Your Site vs. The World

WHY REQUIRE A NONCE?

Page 88: Your Site vs. The World

A NONCE IS LIKE A KEY.IF YOU DON'T HAVE ONE, YOU CAN'T GET IN.

OR, IN THIS STRAINED METAPHOR, SUBMIT A COMMENT.

Page 89: Your Site vs. The World

THIS MEANS BOTS HITTING WP-COMMENTS-POST.PHP DIRECTLY

WILL GET FLAGGED AS SPAM.

Page 90: Your Site vs. The World

HONESTLY, NOBODY REALLY needs TO HIT WP-COMMENTS-POST.PHP DIRECTLY.

Page 91: Your Site vs. The World

OKAY. ENOUGH ABOUT SPAM.WHAT IF AVH DOESN'T WORK ON YOUR HOST?

Page 92: Your Site vs. The World

LOOK INTO A HOSTED WAF!

(WEB APPLICATION FIREWALL)

Page 93: Your Site vs. The World

JUST LIKE MANAGED HOSTS FOCUS ON JUST WORDPRESS.HOSTED WAF PRODUCTS CONCENTRATE ON MITIGATING RISKS AND DOS PROTECTION.

Page 94: Your Site vs. The World

THE MOST FAMOUS HOSTED WAF SOLUTION IS CLOUDFLARE.BUT BOTH SUCURI CLOUDPROXY AND INCAPSULA ARE JUST AS GOOD.

AND A BIT MORE FOCUSED ON SECURITY RATHER THAN SPEED.

Page 95: Your Site vs. The World

SPOILER ALERT!ALL OF THESE COMPANIES CHARGE FOR WAF SERVICE.

Page 96: Your Site vs. The World

THEY'RE totally WORTH IT THOUGH.SO FIND THE ONE THAT'S RIGHT FOR YOU AND PAY FOR IT!

Page 97: Your Site vs. The World

YOU'LL SEE LESS SPAM,LESS FAKE REGISTRATIONS,LESS LOGIN ATTEMPTS.

Page 98: Your Site vs. The World

SPEAKING OF LOGIN ATTEMPTS...

Page 99: Your Site vs. The World

YOU SHOULD DEFINITELY INSTALL LIMIT LOGIN ATTEMPTS

HTTP://COSPER.ME/LLA-PLUGIN

Page 100: Your Site vs. The World

A LOT OF HOSTS ARE ADDING IT TO THEIR INSTALLS BY DEFAULT.

WP ENGINE DOES!

Page 101: Your Site vs. The World

THE DEFAULT SETTINGS ARE okay

BUT I PREFER TO salt the earth INSTEAD.

Page 102: Your Site vs. The World

OKAY.I THINK THAT'S MY TIME.

Page 103: Your Site vs. The World

QUESTIONS?