453897 HTACCESS block website script wanted

In Progress Posted Nov 4, 2010 Paid on delivery
In Progress Paid on delivery

HTACCESS block website script wanted

PLS DO NOT COPY FROM "askapache" or "webmasterworld" this is not what I want

I need a htaccess script which has engine rewrite on and will add to a text ot other such list (within the htaccess file or in the cgi-bin)

example

RewriteCond %{HTTP_USER_AGENT} *.websiteName.* [NC,OR]

(i do not know what NC or OR means :)

// instead of

RewriteCond %{HTTP_USER_AGENT} *.123.456.789.147.* [NC,OR]

CONCEPT

I enter a website name (not IP address if possible) and the script detects the domain name and writes the IP address to the file

This is for spiders which use multiple IP addresses so entering 1 or 2 IP addresses is basically useless

ALSO

I would also like to block BLANK REFERRERS

for example;

# this ruleset is to stop blank user agents with blank referrers

RewriteCond %{HTTP_REFERER} ^-?$

RewriteCond %{HTTP_USER_AGENT} ^-?$

RewriteRule .* /cgi-bin/[url removed, login to view] [L,T=application/x-httpd-cgi]

// this should ideally redirect to a html page if detected

CHMOD

I would prefer that the data file is in the CGI-BIN this way I do not need to have the htaccess file CHMOD'd to 666 and I can call the text file in the cgi-bin anything I like

Pls contact me for further details

Thx

Article Rewriting Odd Jobs Perl PHP Shell Script

Project ID: #2199786

About the project

Remote project Active Jul 11, 2012