Forum Moderators: phranque

Message Too Old, No Replies

Block nigerian traffic

solution to blick nigerian traffic

         

tabish

3:47 pm on Jan 3, 2007 (gmt 0)

10+ Year Member



I found this

www.wizcrafts.net/nigerian-blocklist.html

I dont know how effective is this.. can anyone tell me this?

Regards
Tabish

[edited by: jdMorgan at 4:29 pm (utc) on Jan. 3, 2007]
[edit reason] De-linked [/edit]

jdMorgan

4:37 pm on Jan 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The best way to find out if it's effective is to test it on your site. Problems (if any) are more likely to be related to the details of your existing server configuration than to anything else.

Do not use any such code if you cannot fully understand it and evaluate the impact it will have on your existing access controls or server performance. No-one else knows your site like you do, and therefore, no-one else can say whether it would OK to install this or that code.

Be aware that any code in .htaccess is interpreted/executed for each and every HTTP request to your server -- every page, every image, every CSS file request, etc. Therefore, large sections of code should be avoided unless you really need them to solve an existing problem[/i].

Jim

Frank_Rizzo

4:46 pm on Jan 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As a sidenote my httpd.conf file has this:

<Files ~ "^.*$">

Which is different to the example in the site listed above:

<Files *>

I understand the latter is for all files but what is it that my <files pattern is doing?

jdMorgan

5:15 pm on Jan 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member




<Files *>
Deny from all
</Files>

<Files ~ "^.*$">
Deny from all
</Files>

<FilesMatch "^.*$">
Deny from all
</FilesMatch>

These are simply alternate and equivalent ways of doing a wild-card "match anything" -- See the <Files> container documentation [httpd.apache.org] in Apache core.

Jim