<?php
if(isset($_GET['sub'])) {
if(empty($_GET['link'])) {
echo '<script>alert("Please fill in the field!");</script>';
} else {
$link = htmlspecialchars($_GET['link']);
echo '<form method="POST"><button type="submit" name="dl_link">ownload File</button></form>';
if(isset($_POST['dl_link'])) {
header("Content-disposition: attachment; filename=".$link."");
header("Content-type: ".$link.".*:");
readfile("".$link."");
}
}
}
?>
<html>
<body>
<form method="GET">
<input type="text" name="link" placeholder="Paste link here">
<input type="submit" name="sub" value="Get Link">
</form>
</body>
</html>
Copyright © 2024, NextGenUpdate.
All Rights Reserved.