I modified it a bit. Same results
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mydomain\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /image/nolink.jpg [L]
RewriteRule .file1\.php*$ stub.php [L]
RewriteRule .type1_*\.php*$ stub.php [L]
_____
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Michele Waldman
Sent: Friday, November 28, 2008 3:03 PM
To: 'NYPHP Talk'
Subject: [nyphp-talk] htaccess & php
This is not working for me
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mydomain\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /image/nolink.jpg [L]
RewriteRule .file1\.php(\?*)?$ stub.php [L]
RewriteRule .type1_*\.php(\?*)?$ stub.php [L]
All of the php files are referred to in the html as:
Src="../../file1.php" or
Src="../../type1_file2.php?arg1=blah
In the case of file1, I'm just getting the stub.php
In the case of type1_file2.php the file is being call. I think because my
string didn't match.
I'm trying to lock out remote call to the php files.
Michele
_______________________________________________
New York PHP User Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org/show_participation.php