|
| Author |
Topic: Blocking IPs with htaccess |
|
amray

Full Member

|
Posted on: Aug 7, 2007 - 11:26am
|
Normally if you’re using htaccess in your cgi folder, it will block spammers from entering your Directory at your Index page level. Of course, you don’t mind if they browse your directory pages but you don’t want them to spam you.
Normal htaccess will have
Limit GET POST
order allow,deny
allow from all
deny from
this will effect whole folder but you can restrict access to one single file by replacing Limit line with Files line like this:
Files addurl.cgi
order allow,deny
allow from all
deny from
You can change 'addurl' to 'rate' or 'review' or have them all protected by this little trick.
Oh, don't forget to put /Files after your blocked IP list
You will need to use "<" and ">" of course |
Total Posts: 109 | Joined:
Oct 2, 2003 - 9:41pm | IP
Logged
|
|
|
Forum Legend |

|
New Member
|

|
Reply
to topic |

|
More
than 50 posts | Member
|

|
Reply
to topic with quoted message |

|
More
than 100 posts | Full Member
|

|
Edit
Message |

|
More
than 150 posts | Advanced Member
|

|
View
profile |

|
More
than 200 posts | Advanced Member |

|
Email
member |
|
|