# How to check the uniqueness of users in "hot link" badge?

**URL:** https://meta.discourse.org/t/how-to-check-the-uniqueness-of-users-in-hot-link-badge/91471
**Category:** Support
**Created:** [03.Июль.2018 12:26:59 UTC](https://meta.discourse.org/t/how-to-check-the-uniqueness-of-users-in-hot-link-badge/91471 "2018-07-03T12:26:59Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![pkulkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pkulkov/32/86504_2.png) [@pkulkov](https://meta.discourse.org/u/pkulkov)
#### Post date: [03.Июль.2018 12:26:59 UTC](https://meta.discourse.org/t/how-to-check-the-uniqueness-of-users-in-hot-link-badge/91471/1 "2018-07-03T12:26:59Z")

</div>

If i reload page with my name in link (?u=username) 300 times, i’ll get this badge. How do secure it?

---

<div class="post-metadata">

### Author: ![SidV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidv/32/119460_2.png) [@SidV](https://meta.discourse.org/u/SidV)
#### Post date: [03.Июль.2018 13:00:49 UTC](https://meta.discourse.org/t/how-to-check-the-uniqueness-of-users-in-hot-link-badge/91471/2 "2018-07-03T13:00:49Z")

</div>

Well, I did it…

1. Use _[Data Explorer Plugin](https://meta.discourse.org/t/data-explorer-plugin/32566)_.
2. Create new query
3. [Use this query](https://github.com/SidVal/discourse-data-explorer/blob/queries/queries/hot-link.sql)
4. Execute and view the “clicks” on your topic
5. Open that “topic” on new window, and repload that page with your user’s link a few times… such 10 times or less.
6. Re-execute the query… do you see changes? _(I do not.)_

Finish the test… check complete 😉

Ps, _[query’s list updated](https://github.com/SidVal/discourse-data-explorer/blob/queries/querys.md)_ 🚀

---

<div class="post-metadata">

### Author: ![pkulkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pkulkov/32/86504_2.png) [@pkulkov](https://meta.discourse.org/u/pkulkov)
#### Post date: [03.Июль.2018 14:10:53 UTC](https://meta.discourse.org/t/how-to-check-the-uniqueness-of-users-in-hot-link-badge/91471/3 "2018-07-03T14:10:53Z")

</div>

This query is like “Great share” badge. In Hot link different query. I’ll test it.

---

<div class="post-metadata">

### Author: ![SidV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidv/32/119460_2.png) [@SidV](https://meta.discourse.org/u/SidV)
#### Post date: [03.Июль.2018 15:02:52 UTC](https://meta.discourse.org/t/how-to-check-the-uniqueness-of-users-in-hot-link-badge/91471/4 "2018-07-03T15:02:52Z")

</div>

Ah… I don’t use English language right now on admin panel.  
What badge’s id is the “hot link” badge?

---

<div class="post-metadata">

### Author: ![pkulkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pkulkov/32/86504_2.png) [@pkulkov](https://meta.discourse.org/u/pkulkov)
#### Post date: [03.Июль.2018 15:11:33 UTC](https://meta.discourse.org/t/how-to-check-the-uniqueness-of-users-in-hot-link-badge/91471/5 "2018-07-03T15:11:33Z")

</div>

I don’t use it too))  
30 is like your query,  
21 - hot link

---

<div class="post-metadata">

### Author: ![pkulkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pkulkov/32/86504_2.png) [@pkulkov](https://meta.discourse.org/u/pkulkov)
#### Post date: [05.Июль.2018 10:29:40 UTC](https://meta.discourse.org/t/how-to-check-the-uniqueness-of-users-in-hot-link-badge/91471/6 "2018-07-05T10:29:40Z")

</div>

What query is in this badge?  
[https://meta.discourse.org/badges/29/hot-link](https://meta.discourse.org/badges/29/hot-link)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [05.Июль.2018 10:35:34 UTC](https://meta.discourse.org/t/how-to-check-the-uniqueness-of-users-in-hot-link-badge/91471/7 "2018-07-05T10:35:34Z")

</div>

Here’s the query for the Hot Link badge

> <https://github.com/discourse/discourse/blob/5f64fd0a217552d1e031a28732a0e6000b090cc4/lib/badge_queries.rb#L190-L196>

---

<div class="post-metadata">

### Author: ![pkulkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pkulkov/32/86504_2.png) [@pkulkov](https://meta.discourse.org/u/pkulkov)
#### Post date: [05.Июль.2018 12:24:51 UTC](https://meta.discourse.org/t/how-to-check-the-uniqueness-of-users-in-hot-link-badge/91471/8 "2018-07-05T12:24:51Z")

</div>

Tnx.  
And what query for this?  
[https://meta.discourse.org/badges/21/nice-share](https://meta.discourse.org/badges/21/nice-share)

---

<div class="post-metadata">

### Author: ![mikechristopher](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mikechristopher/32/89135_2.png) [@mikechristopher](https://meta.discourse.org/u/mikechristopher)
#### Post date: [05.Июль.2018 12:43:10 UTC](https://meta.discourse.org/t/how-to-check-the-uniqueness-of-users-in-hot-link-badge/91471/9 "2018-07-05T12:43:10Z")

</div>

> <https://github.com/discourse/discourse/blob/5f64fd0a217552d1e031a28732a0e6000b090cc4/lib/badge_queries.rb#L174-L184>

---

<div class="post-metadata">

### Author: ![pkulkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pkulkov/32/86504_2.png) [@pkulkov](https://meta.discourse.org/u/pkulkov)
#### Post date: [05.Июль.2018 13:02:49 UTC](https://meta.discourse.org/t/how-to-check-the-uniqueness-of-users-in-hot-link-badge/91471/10 "2018-07-05T13:02:49Z")

</div>

Thnx.  
My instance of discourse granted me this badge after reloading link with my username 25 times by myself, but [meta.discourse.org](http://meta.discourse.org) didn’t. Why?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [05.Июль.2018 19:48:48 UTC](https://meta.discourse.org/t/how-to-check-the-uniqueness-of-users-in-hot-link-badge/91471/11 "2018-07-05T19:48:48Z")

</div>

Probably an error in configuration where the correct user IP is not passed through on your site?

---

<div class="post-metadata">

### Author: ![pkulkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pkulkov/32/86504_2.png) [@pkulkov](https://meta.discourse.org/u/pkulkov)
#### Post date: [05.Июль.2018 21:36:44 UTC](https://meta.discourse.org/t/how-to-check-the-uniqueness-of-users-in-hot-link-badge/91471/12 "2018-07-05T21:36:44Z")

</div>

🧐  
Hmm… It was the same IP. I’ll try from another.

---

<div class="post-metadata">

### Author: ![pkulkov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pkulkov/32/86504_2.png) [@pkulkov](https://meta.discourse.org/u/pkulkov)
#### Post date: [09.Июль.2018 17:59:34 UTC](https://meta.discourse.org/t/how-to-check-the-uniqueness-of-users-in-hot-link-badge/91471/13 "2018-07-09T17:59:34Z")

</div>

Looks like this is it. From another IP badge not granted

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [08.Август.2018 17:59:36 UTC](https://meta.discourse.org/t/how-to-check-the-uniqueness-of-users-in-hot-link-badge/91471/14 "2018-08-08T17:59:36Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
