Need Help:My first JS cloaker (with Chat GPt)

ddyocto

Newbie
Joined
Aug 20, 2025
Messages
44
Reaction score
22
Hi BHW,

I usually sell bags imported from China, but I’ve run into some losses and decided to try affiliate marketing. First attempt (Adsterra smartlink + PropellerAds push) got me banned. So I built a simple cloaker with ChatGPT help:

Code here: https://pastebin.com/mEKipzEz

It routes bots (Google, Facebook, etc.) to safe clean URLs, and humans to the actual offer.
Could someone check if it’s safe and suggest improvements?

Thanks in advance!
 
Hey BHW,

Nice effort on the cloaker. Quick feedback:
  • gethostbyname() + user-agent checks are a start, but they won’t catch advanced bots.
  • Look into IP blacklist APIs and JS-based bot detection for better accuracy.
  • Add logging to see how it’s performing over time.
  • Also, be careful cloaking on push traffic, networks flag that fast.
Good luck testing!
I really appreciate your valuable feedback and will do my best to improve further.
thank you!
 
Back
Top