Htaccess
GuppY comes with a .htaccess file in the root directory. This file is only useful if your web site runs with an Apache server (this is the case most of the time).
Here is its structure:
AddDefaultCharset UTF-8
# Interdire les .php/
<IfDefine !Free>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/(.*).php/
RewriteRule (.*) - [F]
</IfDefine>
Options -Indexes
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
<Files ~ "\.(inc|dtb)$">
Order allow,deny
Deny from all
Satisfy all
</Files>
ErrorDocument 400 /error.php?err=400
ErrorDocument 403 /error.php?err=403
ErrorDocument 404 /error.php?err=404
ErrorDocument 500 /error.php?err=500
The first line shows the default charset.
The following 12 lines are used to protect the content of your database from hackers and other bad people (and there are some !). Otherwise, files like the data/frth.dtb file for example which holds all e-mail addresses of the people who posted a message in the forum can be read and even help to enrich a Spam file (ugly !).
These 18 lines are not to be modified.
The presence of .Htaccess file is mandatory and serves more if you enable address rewrite.
The 4 following lines are used to direct users to the error page when they ask for a non existing page, or other possible errors. These lines might require to be adapted (with a simple text editor like Notepad or Wordpad for example) according to where you have put your GuppY.
If you installed GuppY at the root of your site (URL = http://www.yoursite.com/) then you have nothing to do. But if you installed it in a directory of your site (URL = http://www.yoursite.com/here/ for example) then you will have to modify these 4 lines :
ErrorDocument 400 /ici/error.php?err=400
ErrorDocument 403 /ici/error.php?err=403
ErrorDocument 404 /ici/error.php?err=404
ErrorDocument 500 /ici/error.php?err=500
In some cases, you might need to modify these 4 lines as follows (for a website having an URL like http://www.yoursite.com/) :
ErrorDocument 400 http://www.votresite.com/error.php?err=400
ErrorDocument 403 http://www.votresite.com/error.php?err=403
ErrorDocument 404 http://www.votresite.com/error.php?err=404
ErrorDocument 500 http://www.votresite.com/error.php?err=500
Or, if installed in the here/ subdir :
ErrorDocument 400 http://www.votresite.com/ici/error.php?err=400
ErrorDocument 403 http://www.votresite.com/ici/error.php?err=403
ErrorDocument 404 http://www.votresite.com/ici/error.php?err=404
ErrorDocument 500 http://www.votresite.com/ici/error.php?err=500
It would also be wise to protect your admin/ directory by a user name and password within the .htaccess file.
As the way of doing it is usually specific to your web host, please refer to its documentation on this topic.
Our partner Nuxit offers to do just in the manager console.
For maximum security, you can put hatccess. Root and admin directory 444 for Guppy 5 these rights do not pose any problems, consult the documentation for your host.
We propose to download a htaccess spam. Known to block IP addresses to spam.
If you want to use, you must download freeGuppY.
For further information on how to protect your web site with a .htaccess file, please refer to the official Apache documentation...