.htaccess

Found a bug? post about it here and your fix if you have one and we will review it and make them part of the official release.
EmilsM
Posts: 9
Joined: 02 May 2013, 19:47

.htaccess

Postby EmilsM » 02 May 2013, 20:39

Doesnt work, throws out a 500 erorr.

YamiKaitou
Amxbans Developer
Posts: 257
Joined: 17 Apr 2013, 14:09

Re: .htaccess

Postby YamiKaitou » 03 May 2013, 21:50

Then remove it

Zapy
Site Admin
Posts: 121
Joined: 01 Apr 2013, 15:52

Re: .htaccess

Postby Zapy » 03 May 2013, 21:54

is the .htaccess file even for amxbans?

Code: Select all

Options Indexes FollowSymLinks Includes
Order allow,deny
allow from all

php_flag register_globals Off
php_flag magic_quotes_gpc Off

RewriteEngine On

########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]


Joomla?
Project Leader for Amxbans.net from 2013
Head Community admin for Warzone Short Valley
Swedish Gaming Community since 2000
www.warzone.nu

Striker
Posts: 7
Joined: 03 May 2013, 17:20

Re: .htaccess

Postby Striker » 03 May 2013, 23:58

YamiKaitou wrote:Then remove it


Yes to install amxbans a lot of persons must delete .htaccess from the .rar
And the problem is since the beginning.

I see in your code Zapy "php_flag magic_quotes_gpc Off", may be it's the problem. Personally this is in "on" with my host.

Zapy
Site Admin
Posts: 121
Joined: 01 Apr 2013, 15:52

Re: .htaccess

Postby Zapy » 04 May 2013, 01:23

Striker wrote:
YamiKaitou wrote:Then remove it


Yes to install amxbans a lot of persons must delete .htaccess from the .rar
And the problem is since the beginning.

I see in your code Zapy "php_flag magic_quotes_gpc Off", may be it's the problem. Personally this is in "on" with my host.


My guess is its something that SleepWalker or SeToY added but we deem it unnecessary.

and yes php_flag magic_quotes_gpc Off would create problems.
Project Leader for Amxbans.net from 2013
Head Community admin for Warzone Short Valley
Swedish Gaming Community since 2000
www.warzone.nu


Return to “Bugs”

Who is online

Users browsing this forum: No registered users and 1 guest