How to redirect all download link to a single download page on wordpress?

Indiweb

Well-known member
Babiato Lover
Trusted Seller
Oct 13, 2018
683
305
63
Heart
I saw a feature on thewpclub. net, I also want to implement it on my Wordpress Site. when you click on any download link, it will first redirect you to thewpclub. net/download and a 15 seconds countdown will happen there before the actual download link appear. and in this download page add google adsense ads also... plz guide me .... how can i do this on my wordpress site?
 

TheRyD3r

Well-known member
Babiato Lover
Trusted Uploader
Dec 21, 2019
398
288
63
Around The World
paxxer.tv
I saw a feature on thewpclub. net, I also want to implement it on my Wordpress Site. when you click on any download link, it will first redirect you to thewpclub. net/download and a 15 seconds countdown will happen there before the actual download link appear. and in this download page add google adsense ads also... plz guide me .... how can i do this on my wordpress site?

Sometimes its a php file that hides the actual download link but serves the file directly without exposing it
 
  • Like
Reactions: Indiweb

Indiweb

Well-known member
Babiato Lover
Trusted Seller
Oct 13, 2018
683
305
63
Heart
Sometimes its a php file that hides the actual download link but serves the file directly without exposing it
Can u guide me? How automatically create different different download pages for different different download links from my wordpress posts download button....with ads places like google adsense.......?
 

TheRyD3r

Well-known member
Babiato Lover
Trusted Uploader
Dec 21, 2019
398
288
63
Around The World
paxxer.tv
Can u guide me? How automatically create different different download pages for different different download links from my wordpress posts download button....with ads places like google adsense.......?
So you necessarily do not have to create multiple download links you get.

For example, have you noticed links like this https://yourdomain.com/index.php?id=randomtext, yeah you can basically clone your links in that format and whatever hides behind that, is served
 
  • Like
Reactions: Indiweb

TheRyD3r

Well-known member
Babiato Lover
Trusted Uploader
Dec 21, 2019
398
288
63
Around The World
paxxer.tv
its very difficult to understand, i m not technical.... can u explain?????
Okay its easy

I'll guide you through below, for anyone that might also care for it.

Code:
<?php

$filePath = '';

if($_GET["id"] === "Your desired Id here"{
$filePath = 'Your Original Link goes here';
}

    header('Content-Type: video/mkv');
    header('Content-Type: video/mp4');
    header('Content-Length: ' .(string)filesize($filePath));
    header('Content-Description: File Transfer');
    header('Content-Type: application/force-download');
    header('Content-Type: application/octet-stream');
    header('Content-Disposition: attachment; filename="'.basename($filePath).'"');
    readfile($filePath);
?>

That would assist you with what you want to achieve
 

Indiweb

Well-known member
Babiato Lover
Trusted Seller
Oct 13, 2018
683
305
63
Heart
Okay its easy

I'll guide you through below, for anyone that might also care for it.

Code:
<?php

$filePath = '';

if($_GET["id"] === "Your desired Id here"{
$filePath = 'Your Original Link goes here';
}

    header('Content-Type: video/mkv');
    header('Content-Type: video/mp4');
    header('Content-Length: ' .(string)filesize($filePath));
    header('Content-Description: File Transfer');
    header('Content-Type: application/force-download');
    header('Content-Type: application/octet-stream');
    header('Content-Disposition: attachment; filename="'.basename($filePath).'"');
    readfile($filePath);
?>

That would assist you with what you want to achieve
I m trying to understand.... where i place this code?
 

TheRyD3r

Well-known member
Babiato Lover
Trusted Uploader
Dec 21, 2019
398
288
63
Around The World
paxxer.tv
I m trying to understand.... where i place this code?

On your cPanel filemanager dashboard for the domain, you create a php file, maybe called download.php or so

And then you paste the code inside and edit where is needed to be edited.

Then after if you want to create additional links, you just copy this section and paste on a new line and edit both the ID and the links

Code:
if($_GET["id"] === "Your desired Id here"{
$filePath = 'Your Original Link goes here';
}

And then when you want to call it, it would be like this: https://yourdomain.com/download.php?id=[The Id Your Want]
 
  • Love
Reactions: Indiweb

Indiweb

Well-known member
Babiato Lover
Trusted Seller
Oct 13, 2018
683
305
63
Heart
On your cPanel filemanager dashboard for the domain, you create a php file, maybe called download.php or so

And then you paste the code inside and edit where is needed to be edited.

Then after if you want to create additional links, you just copy this section and paste on a new line and edit both the ID and the links

Code:
if($_GET["id"] === "Your desired Id here"{
$filePath = 'Your Original Link goes here';
}

And then when you want to call it, it would be like this: https://yourdomain.com/download.php?id=[The Id Your Want]
Thanx bro... now getting some idea... i will take trial..... if i will face any issue... i will msg u....
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu