# Can I Use HTTP Refferer

**URL:** <https://forum.infinityfree.com/t/can-i-use-http-refferer/56184>\
**Category:** Informal\
**Created:** [December 27, 2021, 5:05am UTC](https://forum.infinityfree.com/t/can-i-use-http-refferer/56184 "2021-12-27T05:05:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ratraz](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/ratraz/32/20833_2.png) [@Ratraz](https://forum.infinityfree.com/u/Ratraz)\
**Post date:** [December 27, 2021, 5:05am UTC](https://forum.infinityfree.com/t/can-i-use-http-refferer/56184/1 "2021-12-27T05:05:25Z")

</div>

Can I disable a link if the link is not from the previous link

Like : [https://example.com/ReffLink/ThisLink](https://example.com/ReffLink/ThisLink)

People Must From previous Link First Then The Link page go

But People Dont Just Search [https://example.com/ReffLink](https://example.com/ReffLink)(Without click See This Link)/ThisLink(Locked)

---

<div class="post-metadata">

**Author:** ![jaikrishna.t](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/jaikrishna.t/32/57109_2.png) [@jaikrishna.t](https://forum.infinityfree.com/u/jaikrishna.t)\
**Post date:** [December 27, 2021, 5:18am UTC](https://forum.infinityfree.com/t/can-i-use-http-refferer/56184/2 "2021-12-27T05:18:37Z")

</div>

Idk much about that … Maybe this’ll help?

> [@$\_server\['http\_referer'\]](https://forum.infinityfree.com/t/server-http-referer/27211/2):
>
> Interesting, I hadn’t realized that this system might affect the HTTP referrer URL. Unfortunately, I don’t think there is a way to fix this. Since the cookie challenge relies on generating the page and then redirecting people, I’m not sure it’s possible to prevent this referrer change. And the security system cannot be turned off.

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [December 27, 2021, 9:21am UTC](https://forum.infinityfree.com/t/can-i-use-http-refferer/56184/3 "2021-12-27T09:21:29Z")

</div>

Yes, this is probably possible. Although you’ll likely have to custom code this in PHP to make this work.

If you’re linking from an external website, the post shared by @jaikrishna.t is relevant. If you’re linking from the same website, it doesn’t affect you.

Although I do want to state that the Referrer header is easy to manipulate by visitors, so you should not rely on it for any kind of security.

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [January 5, 2022, 2:03am UTC](https://forum.infinityfree.com/t/can-i-use-http-refferer/56184/4 "2022-01-05T02:03:15Z")

</div>


