Anti-Leech Script Help

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Apr 26, 2004 1:39 am    Post subject: Anti-Leech Script Help Reply with quote

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 View user's profile Send private message Visit poster's website
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Mon Apr 26, 2004 3:56 am    Post subject: Reply with quote

What browser are you using?
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Apr 26, 2004 5:06 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Mon Apr 26, 2004 5:52 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
d0r
-


Joined: 22 Apr 2004
Posts: 17

PostPosted: Mon Apr 26, 2004 6:21 am    Post subject: Reply with quote

Have you tried using the

Code:
target="_new"


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 View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Apr 26, 2004 12:30 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Tue Apr 27, 2004 1:00 am    Post subject: Reply with quote

Er, worked fine for me in Opera.
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Tue Apr 27, 2004 2:16 am    Post subject: Reply with quote

"Are You Hot Linking me ?"

Guess it worked...
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group