![]() |
.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 |
I think you can do it with mod rewrite
|
code perhaps?
|
you can't do that with .htaccess alone.
|
Quote:
Also, what's stated here. It'd be easier for you just to make a script which reads the list.txt and prepends it to your .htaccess This has no bounds checking and is dumb as hell, but will do what you want. Trivially wrapped as a CGI so you can activate via browser rather than shell. Again, it's stupid, but it's free. addnewbans.cgi: Code:
#/bin/sh Code:
RewriteCond %{HTTP_REFERER} ^http://clownpenis\.fart/booz.html [NC, OR]... |
Thanks dude will try that out
|
All times are GMT -7. The time now is 02:44 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123