Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest sNews - sNews 1.7 - with its own forums - for discussion and user mods.

Author Topic: .htaccess issue  (Read 2945 times)

3Pinter

  • Jr. Member
  • **
  • Karma: 0
  • Posts: 61
    • Fromthemill.nl
.htaccess issue
« on: May 16, 2007, 07:42:56 pm »

Hi,

I was wondering if this piece of .htaccess isn't needed anymore since sNews 1.6? I remember it being needed in 1.50 but since I'm going to upgrade it, is this coding needed or not?

Code: [Select]
#security fix
# mod_rewrite should intercept most of the 'funny' requests and redirect them to log.php file

RewriteCond %{QUERY_STRING} (\"|%22).*(\>|%3E|<|%3C).* [NC]
RewriteRule ^(.*)$ log.php [NC]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC]
RewriteRule ^(.*)$ log.php [NC]
RewriteCond %{QUERY_STRING} (javascript:).*(\;).* [NC]
RewriteRule ^(.*)$ log.php [NC]
RewriteCond %{QUERY_STRING} (\;|\'|\"|\%22).*(union|select|insert|drop|update|md5|benchmark|or|and|if).* [NC]
RewriteRule ^(.*)$ log.php [NC]
RewriteRule (,|;|<|>|'|`) log.php [NC]
Thanks,

3Pinter

bramsyuur

  • Hero Member
  • *****
  • Karma: 23
  • Posts: 873
    • http://snews.vietbee.net
.htaccess issue
« Reply #1 on: May 16, 2007, 07:44:57 pm »

No. You can remove it.
Or, better, use the original sNews v1.6 .htaccess file.
Logged
La comunidad sNews en tu idioma!
Comunidad sNews en Espaņol

3Pinter

  • Jr. Member
  • **
  • Karma: 0
  • Posts: 61
    • Fromthemill.nl
.htaccess issue
« Reply #2 on: May 16, 2007, 08:17:22 pm »

Great!

I like clean coding so I'll use 1.6's file instead.


Thanks.

3Pinter

Ghassem Tofighi

  • Full Member
  • ***
  • Karma: 9
  • Posts: 104
    • http://ght.ir
.htaccess issue
« Reply #3 on: May 17, 2007, 12:24:11 am »

Dear bramsyuur
Please help me about this one
http://www.solucija.com/forum/viewtopic.php?id=4457
Logged
Be A Color Pencil For Painting The World !

piXelatedEmpire

  • MIA
  • ULTIMATE member
  • ******
  • Karma: 37
  • Posts: 1401
  • currently MIA
.htaccess issue
« Reply #4 on: May 17, 2007, 02:14:06 am »

ght please stop cross posting your threads all over the forums.. it just creates a mess of links.  Have patience or use PM.
Logged
my apologies to the sNews crew, but I will be MIA for the forseeable future

Ghassem Tofighi

  • Full Member
  • ***
  • Karma: 9
  • Posts: 104
    • http://ght.ir
.htaccess issue
« Reply #5 on: May 17, 2007, 02:47:32 am »

ok! excuse me   :(
Logged
Be A Color Pencil For Painting The World !