View Single Post
Old 02-03-2010, 06:55 PM  
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
.htaccess question, pulling up external list.txt

Need to use the same list of IP's to block on a few of my sites. Can I make it go to a list.txt file on the server somehow?

Current .htaccess:
##### start anti spy squirrel script
deny from XX.XX.XX.X
ErrorDocument 403 /error.html
##### end anti spy squirrel script

want to:

##### start anti spy squirrel script
deny from http://www.mysite.com/list.txt
ErrorDocument 403 /error.html
##### end anti spy squirrel script

and in list.txt i will list the ip's I want to block line by line.

How do I properly say this line?
deny from http://www.mysite.com/list.txt
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote