• Contact Us
  • Advertise
  • Submit PR
Saturday, January 24, 2026
  • Login
  • Register
YNOT
  • Home
  • Industry News
    • Porn Star & Adult Talent News
    • Adult Business News
    • Adult Novelty News
    • Tech News for Adult Webmasters
    • Video Game News for Adults
    • EU News
  • PR Wire
  • Podcasts
  • Industry Guides
  • Newsletters
No Result
View All Result
  • Home
  • Industry News
    • Porn Star & Adult Talent News
    • Adult Business News
    • Adult Novelty News
    • Tech News for Adult Webmasters
    • Video Game News for Adults
    • EU News
  • PR Wire
  • Podcasts
  • Industry Guides
  • Newsletters
No Result
View All Result
YNOT
No Result
View All Result
Home YNOT Features YNOT University

Steps To Avoid Being Hacked

admin by admin
May 22, 2003
in YNOT University
News Flash to White House: 95-Percent of Americans Didn’t Wait for Marriage
491
SHARES
Share on FacebookShare on Twitter

We suffered a nasty hack earlier this year. Basically, it was an SQL injection hack to our “resend my password” page, a page which I knew was woefully out of date but hadn’t gotten around to updating.No matter how much of a tech geek you are, getting hacked can happen to you.

We suffered a nasty hack earlier this year. Basically, it was an SQL injection hack to our “resend my password” page, a page which I knew was woefully out of date but hadn’t gotten around to updating. The hacker in question got my password (since I’m user_id 1, doing a “select * from users” gives me first… something which I should also fix). Fortunately, they seemed mostly interested in looking at free porn and didn’t mess with our admin pages or do any really nasty stuff like “drop table users” which they could have.

The only reason I even learned of the hack was that we got a bunch of bounced “here’s your password” emails that were being sent to email addresses like, “create table fool insert into fool select top 1 * from users select name + ‘/’ + password from fool drop table fool” (yes, I got dissed by the hacker on top of everything!)

The hacker was coming from an IP address registered to the Pan Pacific Hotel in Singapore. Odds are it was a compromised system there, and if not, it was someone in a room or something so we have little hope of tracking down the bastard and inflicting appropriate retribution.

None of this is new, but I’m going to reiterate common best practices here:

1. Log everything.

I’m glad our admin pages log user ID, date, time, and admin action so I know that the hacker didn’t set up other accounts or give admin access to other accounts, etc.

2. If you’re using SQL, never, ever submit text queries.

If you’re on MS SQL, use command objects with the parameters collection. I’m sure that other databases have comparable objects you can use to avoid any chance of a SQL injection attack. There is no excuse for using browser submitted data in a text SQL query… eventually someone will find the weakness.

3. If you know that a page is out of date and using old coding standards, take a look at it even if you don’t fix it right away.

I’d been putting off fixing this page because it seemed like drudgery to update a rarely used page. Taught me a lesson.

4. Pay special attention to pages that are anonymously viewable.

Not many hackers will pay to try to hack your site, so odds are that 99% of hack attempts will be on the 2-8 pages that are viewable by anyone without paying, namely main page, tours, resend, etc.

5. If you’re running an SQL DB, the web server SQL user should absolutely not have rights to create, alter, or drop tables or stored procedures.

6. Likewise, the web server SQL user should not have any direct select/update/delete rights to tables.

All data access should be through stored procedures.

7. If you’re SQL based, do frequent backups (like daily), plus very frequent transaction log backups (like 5 or 10 minutes).

That way, if you are hacked by someone malicious, you can restore to within five minutes or so of when the hack happened.

I knew all of this stuff, and 99.9% of our code complied with it… but it goes to show you, that 0.1% can kill you. Fortunately, we escaped relatively unscathed because the hacker wanted to get free porn rather than damage our site. I’m definitely not counting on that happening twice.

Aiken is the co-owner and founder of Bondage.com, a Website dedicated to the Bondage, Domination and Sado-Masochism (BDSM) community since 1995. Aiken is also a Tech Chat Board Moderator here at YNOTMASTERS. Aiken can be reached via email at aiken@bondage.com.

Share196Tweet123
admin

admin

YNOT Admin wields his absolute power without mercy. When he's not busy banning spam comments to hell he enjoys petting bunnies and eating peanut butter. He recommends everyone try the YNOT Mail (ynotmail.com) email marketing platform and avoid giving their money to mainstream services that hate adult companies.

Related Posts

Adult Business News

UK Online Safety Act Cuts Pornhub Traffic 36% as Age Verification Takes Effect

December 13, 2025
The Cambassador: Lindsey Banks, Flirt4Free and Brand Representation
Adult Business News

The Cambassador: Lindsey Banks, Flirt4Free and Brand Representation

September 5, 2018
ImLive’s Mere Menezes Siqueira Manages Models, Makes the Machine Work
Adult Business News

ImLive’s Mere Menezes Siqueira Manages Models, Makes the Machine Work

August 23, 2018
Corey Silverstein of Adult.law
Adult Business News

Silverstein Says: 3 Legal Issues Cam Companies, Models Must Pay Attention To

August 22, 2018
Load More

SPONSOR

INDUSTRY EVENTS

Currently Playing

YNOT Summit Model Track: Nerds Dig Sexy Gamers

YNOT Summit Model Track: Nerds Dig Sexy Gamers

01:05:46

YNOT Summit Webmaster Track: Understanding Webcam Business Models

00:51:11

YNOT Summit Model Track: Cam Law 101

01:26:24

POPULAR NEWS

Paris Hilton, AOC Push Federal Ban on AI Deepfake Pornography in Capitol Hill Advocacy

January 23, 2026

Tennessee House approves HB 884 to extend 1,000-foot buffers to adult cabaret venues

January 23, 2026

HBO Max’s ‘Heated Rivalry’ linked to surge in hockey searches, Pornhub says

January 23, 2026

SPONSOR

YNOT YNOT

QUICK LINKS:

  • About YNOT
  • Terms of Use
  • Privacy Policy
  • Editorial Team
  • Advertise on YNOT
  • Support
  • Contact Us
  • Sitemap

FRIENDS OF YNOT:

  • Best Adult Cams
  • Live Porn
  • Adult Reviews
  • Adult Email Marketing
  • Discounted Porn
  • vr porn sites
  • European Adult Biz Magazine

FRIENDS OF YNOT:

  • Rabbits Reviews
  • XXX Job Interviews
  • Adult Site Broker
  • Femdom
  • Paid Porn Sites
  • Live Sex
  • Cam girl sites

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms below to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • 2018 YNOT Cam Awards Official Nominees
  • About YNOT
  • Adult Company Directory – Coming Soon
  • Advertise on YNOT
  • Attending the 2018 YNOT Cam Awards in Hollywood
  • Business Directory
    • Search
    • Submit Listing
    • Submit Listing
    • Submit Listing
    • YNOT Business Directory Submission
  • Claim Listing
  • Complaint Policy
  • Contact Editorial Team
  • DMCA Policy
  • Newsletters
  • Porn News & XXX Industry News
  • Privacy Policy for California Residents
  • Sitemap
  • Sitemap Categories
  • Support
  • YNOT Adult Affiliate Marketing Guide
    • Adult Affiliate Marketing for Beginners: A Basic Guide for Getting Started in 2023
    • Adult Affiliate Marketing Verticals Guide
    • Adult Email Marketing Best Practices
    • Buying Adult Email Lists: Why This is Always a Bad Idea
    • Key Concepts: Adult Affiliate Programs
    • Key Concepts: Adult Email Lists
    • Key Concepts: Landing Pages
    • Key Concepts: Sender Reputation
  • YNOT Cam Awards Nominee Information Page
  • YNOT Magazine: Issue 1, 2018
  • YNOT Party 2016 Austin – Event Page
  • YNOT Policy Regarding Social Media or Private Disputes
  • YNOT Privacy Policy
  • YNOT Terms and Conditions

Copyright © 2026 YNOT Group LLC.

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.