| | |||||
| ||||||||
| Webmaster Tutorials Instructional webmaster-related how-to's and tutorials. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Sep 2005 Location: At Home
Posts: 881
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | How to ban somebody who has done something wrong on your site Well, first of all we need a form where you enter their IP address. PHP Code: There what we do is add the enetered IP address into a table: PHP Code: ????: NamePros.com http://www.namepros.com/webmaster-tutorials/173497-how-ban-somebody-who-has-done.html PHP Code: Now you also make a form very simmilar to the one above: PHP Code: PHP Code:
__________________ |
| |
| | #3 (permalink) | ||||
| Tech Support Join Date: Mar 2005
Posts: 4,944
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
deny from ipaddress allow from all | ||||
| |
| | #4 (permalink) |
| Senior Member Join Date: Oct 2004 Location: New Jersey
Posts: 2,279
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | A warning though about banning IP addresses. Some people are on dynamic IP's that are shared with others, which may limit the other people who are unfortunate enough to get that IP the next time they log in to their ISP. Also some schools use a single IP to route all their traffic out of. |
| |
| | #5 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | also, make sure u keep those php files secure, because otherwise any random person could access it and go on an IP address banning spree X_X and we wudnt want that, now would we? good tut neway!
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #6 (permalink) | ||||
| NamePros Regular Join Date: Mar 2006
Posts: 263
![]() ![]() |
next week they get a new IP. | ||||
| |
| | #7 (permalink) |
| NamePros Regular Join Date: Oct 2005
Posts: 205
![]() ![]() | For all of the reasons noted above, banning IP addresses is usually fruitless. If you are going to ban IPs permanently, .HTACCESS is the efficient way to go, but I believe asgsoft's database driven solution is better for a 'soft' ban. Just timestamp the entry and purge after a certain period (IE 72 hours). This way you get rid of the twit and minimize the number of innocents that get booted from your site. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Various Text Link Ads for Sale | netguard | Advertising & SEO Services | 0 | 11-04-2005 01:17 PM |