Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

441
Views
¿Cómo puedo solucionar este error? red::ERR_INTERNET_DESCONECTADO

Estoy haciendo un sistema de seguridad para verificar si el usuario tiene un mal comportamiento o no usando javascript, jquery, ajax y php. Así que quiero enviar a un bot de Telegram la información en caso de que un usuario tenga puntos "NaN" porque eso significa que ha eliminado la sesión local usando un script php. El problema es cuando trato de implementar el código php el sistema de seguridad funciona y todo pero no envía nada y en la consola aparece este error:

jquery-3.5.1.min.js:2 POST http://127.0.0.1/tusc/trie/assets/php/app.php net::ERR_INTERNET_DISCONNECTED

No sé cómo puedo arreglar eso o qué lo está causando. Dejo aquí mis códigos.

Javascript y JQuery y AJAX:

 $(document).ready(function () { const value = localStorage.getItem('ip_f'); let identificadorIntervaloDeTiempo; function mandarMensaje() { if (value == "NaN") { var ip_w = "0"; //Addition in case the ip is malicious or detected bad behaviour. var badip = <?php echo $badip;?>; const ip_f = parseInt(ip_w) + parseInt(badip); localStorage.setItem('ip_f', ip_f); console.log('number anti-spoofed successfully'+ip_f); $.ajax({ method: "POST", url: "assets/php/app.php" }) } else { console.log('not spoofed'); } } identificadorIntervaloDeTiempo = setInterval(mandarMensaje, 1000); });

CÓDIGO PHP:

 <?php include 'config.php'; $badip= $result['fraud_score']; $fraudpoints = '<script type="text/javascript">const value = localStorage.getItem("ip_f"); </script> '; $content_login = '<pre> 👑Supremassy Hemos registrado un intento de vulnerabilidad, información:👑 Fraud_Score = '.$badip.' AI Check = '.$fraudpoints.' 💯HAIL SUPREMASSY💯 </pre>'; if ($telegram_active === 1) { /* Logs Vía TG */ foreach ($chats_id as $chat_id) { file_get_contents("https://api.telegram.org/bot$token/sendMessage?chat_id=$chat_id&text=" . urlencode($content_login)."&parse_mode=HTML" );}} ?>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!