Blocking Long URL's

Fix it!!

Blocking Long URL's

Postby cp2000 » Fri Jul 02, 2004 1:39 pm

It seems that a lot of the hack atacks use extra long URLs . I've seen examples of using mod_rewrite to kill specific cammands like cmd.exe. But what about using it to filter for URL's that are say over 50 characters long?

Can it be done?

Thanks in advance for the help
Posts: 1
Joined: Fri Jul 02, 2004 1:10 pm

Postby seomike » Tue Jul 13, 2004 8:06 am

RewriteCond %{REQUEST_URI} ^/.*{50,1000}$
RewriteRule ^(.*)$ ^your-hack-blows.htm [R,L]

try that. don't for get to make the file :biggrin:
Posts: 331
Joined: Thu May 06, 2004 7:36 pm
Location: Dallas

Return to Security with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 5 guests