Dennis: template per htaccess sperren - hilfe über 800.000 scriptaufrufe

Beitrag lesen

Hi sascha_k,

damit habe ich es versucht, aber ohne erfolg:
RewriteCond %{QUERY_STRING}  /cgi-bin/seite&|$

Eine RewriteCond ohne eine RewriteRule dahinter bringt nichts, steht auch so in der Doku:

The RewriteCond directive defines a rule condition.
  One or more RewriteCond can precede a RewriteRule directive.
  The following rule is then only used if both the current
  state of the URI matches its pattern, and if these conditions
  are met.

Probier mal folgendes:

# Serve 403 for all URLs starting with cgi-bin/seite  
RewriteRule ^cgi-bin/seite.*$ - [F]

Das sollte für alle gewünschten URLs eine 403 Forbidden liefern. Falls du das in die VirtualHost-Konfiguration schreibst, muss noch ein Slash vor cgi-bin, falls du es in eine .htaccess im cgi-bin Ordner schreibst muss das cgi-bin/ raus.

Viele Grüße,
  ~ Dennis.