Stimmt der Code so?[BTK] Tobi hat geschrieben:Code: Alles auswählen
RewriteEngine On RewriteCond %{QUERY_STRING} (.*)=http://(.*) [OR] RewriteCond %{QUERY_STRING} (.*)=https://(.*) [OR] RewriteCond %{QUERY_STRING} (.*)=ftp://(.*) [OR] RewriteCond %{QUERY_STRING} ^(.*)UNION(.*) [OR] RewriteCond %{QUERY_STRING} ^(.*)SQL_INJECTION(.*) RewriteRule (.*) http://127.0.0.1 [L,R=301]
Hatte es gestern mal getestet und es funktionierte nicht. Bei mir klappt es mit:
Code: Alles auswählen
RewriteCond %{QUERY_STRING} ^(.*)=http://(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)=https://(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)=ftp://(.*) [OR]