View previous topic :: View next topic |
Author |
Message |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Mon Apr 26, 2004 1:39 am Post subject: Anti-Leech Script Help |
|
|
I created an Anti-leech script , I know shocking lol but any way Im wondering if anyone can help me fix the problem I am having , I can't figure out how to allow zip files or any other file that can't be ran in a browser to popup a download prompt , please help me!
Code: |
<?php
if ($HTTP_REFERER=="http://os17fan.cjb.net/") {
if ($id=="1") {
header ("Location: /links.html");
}
if ($id=="2") {
header ("Location: /contact.html");
}
if ($id=="3") {
header ("Location: /faq.html");
}
if ($id=="4") {
header ("Location: /cool.html");
}
}else{
print "Go Away You leeching Freak!";
}
?> |
Code: |
<a href="/download.php?id=1">Links</a>
<a href="/download.php?id=2">contact</a>
<a href="/download.php?id=3">faq</a>
<a href="/download.php?id=4">cool</a>
|
I link the files like this but when I use the links as zip files
it reads the zip instead of prompting for a download ? :( |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Mon Apr 26, 2004 3:56 am Post subject: |
|
|
What browser are you using? _________________ Bienvenidos! |
|
Back to top |
 |
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Mon Apr 26, 2004 5:06 am Post subject: |
|
|
Why do you want to know what browser im using , this is a PHP
issue where dealing with , im using Internet Explorer 6 |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Mon Apr 26, 2004 5:52 am Post subject: |
|
|
I wanted to know what browser, because I know that Mozilla handles some ZIP files in an odd way. Occationally, it reads the ZIP as a file (like you're describing) instead of asking to download. _________________ Bienvenidos! |
|
Back to top |
 |
 |
d0r -
Joined: 22 Apr 2004 Posts: 17
|
Posted: Mon Apr 26, 2004 6:21 am Post subject: |
|
|
Have you tried using the
So your links will be
Code: |
<a href="download.php?id=4" target="_new">id4</a>
|
Then you could just use Javascript to manipulate the popup window to certain dimensions, etc... |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Mon Apr 26, 2004 12:30 pm Post subject: |
|
|
Using the technique you refered to , I created an example
page so you can check out the source of the problem.
Im sorry but this no longer exists. :-)
Last edited by TRUSTAbyss on Sun May 29, 2005 5:01 am; edited 1 time in total |
|
Back to top |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Tue Apr 27, 2004 1:00 am Post subject: |
|
|
Er, worked fine for me in Opera. |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Tue Apr 27, 2004 2:16 am Post subject: |
|
|
"Are You Hot Linking me ?"
Guess it worked... _________________ Bienvenidos! |
|
Back to top |
 |
 |
|