---
title: "Discussion on \"PATRlOT CTF 2024 (20/09/2024)\" | Hashnode"
description: "Discussion on \"PATRlOT CTF 2024 (20/09/2024)\". giraffe notes\n\n\nBài này khá dễ, logic cơ bản của source code như sau\n<?php\n$allowed_ip = ['localhost', '127.0.0.1'];\n\nif (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && in_array($_SERVER['HTTP_X_FORWARDED_FOR'], $allowed_ip)) {\n    $allowed = true;\n} els..."
url: "https://hashnode.com/posts/patrlot-ctf-2024-20092024/66f024548b3b534fd7edfc9f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [PATRlOT CTF 2024 (20/09/2024)](https://ogatatsumi.hashnode.dev/patrlot-ctf-2024-20092024?utm_source=hashnode&utm_medium=feed)

giraffe notes Bài này khá dễ, logic cơ bản của source code như sau <?php $allowed\_ip = \['localhost', '127.0.0.1'\]; if (isset($\_SERVER\['HTTP\_X\_FORWARDED\_FOR'\]) && in\_array($\_SERVER\['HTTP\_X\_FORWARDED\_FOR'\], $allowed\_ip)) { $allowed = true; } els...

Sep 22, 2024 · 5 min read · ogatatsumi.hashnode.dev  
Read the article

-   [#ctf](https://hashnode.com/tag/ctf)
-   [#ctf-writeup](https://hashnode.com/tag/ctf-writeup)

## Written by

[Thịnh Nguyễn](https://hashnode.com/@OgaTatsumi)

@OgaTatsumi

  
[View profile](https://hashnode.com/@OgaTatsumi)

CTFWriteUp

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
