CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
perl cgi to ban IP blocks

 



progdummy
stranger

Jun 26, 2001, 11:44 PM

Post #1 of 3 (985 views)
perl cgi to ban IP blocks Can't Post

i have been looking for a cgi program written in perl for UNIX .

i have a domain and would like to be able to ban blocks of IP's . i.e. ban 212.45.xxx.xxx from accessing any part of my webs. a control panel would be nice but not that important as long as the script were easily configurable.

any help locating something like this would be appreciated.

...thanks in advance



Kanji
User / Moderator

Jun 28, 2001, 3:49 PM

Post #2 of 3 (974 views)
Re: perl cgi to ban IP blocks [In reply to] Can't Post

Unless you all your pages are CGI-based, you're better off using server access controls. Specific vary from server to server, but if you use Apache or any other NCSA-based server then you'd want to use an .htaccess containing Deny statements, like this ...


Code
  Order Allow,Deny 
Allow from all
Deny from 212.45.





progdummy
stranger

Jun 29, 2001, 1:19 AM

Post #3 of 3 (967 views)
Re: perl cgi to ban IP blocks [In reply to] Can't Post

thank you Kanji. i was looking into doing it with .htaccess also but couldnt find any documentation.

much appreciated


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives