• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

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

Indiweb

Well-known member
Babiato Lover
Trusted Seller
Oct 13, 2018
400
336
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?
 
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
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.......?
 
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
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
 
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?
 
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
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....
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock