Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 428511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:41:00+00:00 2026-05-12T19:41:00+00:00

I am a novice programmer at best, but I am trying to play a

  • 0

I am a novice programmer at best, but I am trying to play a prank on a friend. Basically, there is a url shortener that he is using to redirect to a rickroll page, and the url shortener has a statistics page. I want to mass request the url to make the statistics go up to a ridiculously high number. I’ve written a PHP script that should supposedly work, but it isn’t so far (I know that just requesting repetitively works, the problem is with the script not the url shortener). Here is my script so far:

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "[HIS URL]");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_REFERER,"[FAKE REFERER]");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1");
$i = 0;
header("Content-Type: text/plain");
while(1==1)
{
    $execed = curl_exec($ch);
    print $i + "\n";
    $i++;
}
curl_close($ch);
?>

What am I doing wrong?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T19:41:00+00:00Added an answer on May 12, 2026 at 7:41 pm

    If it’s just a prank… stress test his server with ab.

    Something like this on a Linux box would do wonders:

    // open 5 simultaneus connections and stress test the server for 1000 seconds
    ab -kc 5 -t 1000 http://youfriendurl.com/
    

    … but keep in mind that your prank may pretty well kill his server and you may be held accountable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a novice programmer and I'm trying to learn Android coding using Eclipse. This
I am a novice programmer. Already night trying to solve the problem, but did
I'm a novice programmer using Visual C# 2010. I am trying to dynamically (during
I'm a pretty novice programmer who is trying to make a heartbeat script that
SQL novice here. I'm trying to get a list of invoice numbers. There are
I'm a rather novice programmer who recently came up with a solution that works
A noob question here, by a novice programmer. I am trying to do a
I'm a novice programmer and I am trying to write Sudoku Generator. I know
Forgive me if this is a silly question but I am a novice programmer,
I'm a novice programmer so feel free to comment on things that make no

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.