Sentence to think about :   Don't forget to install an htaccess to protect the access to the admin zone of GuppY.   
 
You are here :   Home » Htaccess
 
Preview  Print...  Print this page...
Preview  Print...  Print this section...
Introduction
Technique
Photos
Modal window
You have at your disposal a jQuery script to display modal windows like the one you are reading.
The implementation is simple :
  • write the link :
    <a class="gypoplight" href="#?w=560&amp;rel=popup1&amp;btn=Close&amp;msk=msk=skins/skin5_guppy2015/">The link text</a>
    w=500 indicates the width of the window
    rel=popup1 popup1 is the name of the id of the div container
    btn=Close contains the text of the tooltips button closure

    msk=msk=skins/skin5_02/ indicates the skin directory for the button image
     
  • write the content in a layer with the appropriate classes :
    <div class="gypopup_block" id="popup1">  .... The content to display ... </div>
You can include any type of content, text and images.
gylogo.png
News of Friends
Visits

 7674 visitors

 1 visitor online

Calendar
rss This article is available in the standard RSS format for publication on your website :
https://guppy.cms/data/en-articles.xml

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
<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 5 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 6 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...


 


Creation date : 26/04/2017 17:24
Category : Technique - Secure your GuppY
Page read 490 times


Reactions to this article

Nobody gave a comment yet.
Be the first to do so!

You are here :   Home » Htaccess
 
Preview  Print...  Print this page...
Preview  Print...  Print this section...
Preferences

Connect again :
Your user name :
Your password
<O>


  Count of members 0 member
Connected :
(nobody)
Snif !!!
Newsletter
To receive news about this website, consider subscribing to our Newsletter.
RmYZxP
copy the code :
Subscriber
(nobody)
Snif !!!