Thread: Making pop-ups
View Single Post
Old 09-21-2005, 08:31 AM   #2 (permalink)
augustine
Senior Member
 
Join Date: Sep 2005
Posts: 128
Default

hum.. I think what you need is a htaccess that controls what files will generate a pop-up.

Gosh how should I say this... just make a .htaccess file and a .php file like the below.

.htaccess
Quote:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^.*\.(zip|tar|exe|rar|tga|ogg|pkg|rpm)
RewriteRule ^(.*)\.(zip|tar|exe|rar|tga|ogg|pkg|rpm)$ http://LOCATION/TO/FILE/popup.php?f=$1.$2 [L,QSA]

popup.php
Quote:
The code that you wants to pop up with

Then when it query files that are stated in the htaccess file, there will be a pop-up
augustine is offline   Reply With Quote
Sponsored Links