> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# Ala. Code § 13A-6-127 — Defenses.

- **Citation**: Ala. Code § 13A-6-127
- **Node Type**: section
- **Jurisdiction**: Alabama (state)
- **Code Body**: Code of Alabama 1975 (through the 2026 Regular Session) (Ala. Code)
- **Official Source**: [https://alison.legislature.state.al.us/code-of-alabama#13A-6-127](https://alison.legislature.state.al.us/code-of-alabama#13A-6-127)
- **Canonical URL**: [https://corpuslaw.us/codes/alabama/title-13a/chapter-6/article-6a/section-13a-6-127](https://corpuslaw.us/codes/alabama/title-13a/chapter-6/article-6a/section-13a-6-127)
- **Semantic URL**: [https://corpuslaw.us/codes/alabama/title-13a/chapter-6/article-6a/section-13a-6-127](https://corpuslaw.us/codes/alabama/title-13a/chapter-6/article-6a/section-13a-6-127)

## Hierarchy

Title 13A — Criminal Code. > Chapter 6 — Offenses Involving Danger to the Person. > Article 6A — Solicitation of Children by Electronic Means.

## Text

13A-6-127. Defenses.

(a) It shall not be a defense to prosecution under this article:

(1) That an undercover operative or law enforcement officer was involved in the detection and investigation of an offense; or

(2) That a meeting as described in this article did not occur.

(b) An owner or operator of a computer on-line service, weblog, Internet service, or Internet bulletin board service shall not be liable for facilitating the on-line solicitation of a child for permitting an undercover operative or law enforcement officer to use an on-line service to detect and investigate unlawful activity related to the on-line solicitation of a child.

(Act 2009-745, p. 2233, §8.)
