Moderated by: FocalMedia Team, Miles, Gerrit, Rian

FocalMedia.Net Forums » PowerSeek »  Discussions, Suggestions & Tips, Tricks

Page: 1 of 1

« Back to Topic Index Page 4 | Replies: 0

 Author  Topic: Blocking IPs with htaccess
amray

Full Member
  

    
Post a Reply To This Topic    Reply With Quotes     Edit Message     View Profile of amray  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


Lock Topic

 

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