Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Possible to ban with .htaccess file?

Status
Not open for further replies.

meeble3

Programmer
Nov 8, 2004
52
GB
I have a site that a few people keep spamming.

Is it possible to set up something like a .htaccess file to store banned IDs to stop them viewing the pages or do I need to do something with .php and a database for example or store the banned IPs in sessions etc.

Thanks
 
You need to program this out on the server-side. Whether you use PHP/Perl/CGI or whatever.
This can be acheived easily using a flat-file database and CGI script.

M. Brooks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top