Results: 1022
Solution to the problem - to use
aria-label="Twitter"
attribute on
a
tag
<a href="<?=$hostname?>" aria-label="Sibrdzne" class="bg-logo"></a>
jQuery vulnerabilities
Older version of jQuery library has XSS vulnerabilities (lighthouse) Because of that
jquery-1.7.2.min.js
was replaced by
jquery-3.5.1.min.js
noreferrer on links
Links to cross-origin destinations were not safe (
lighthouse
) Advice: Add
rel="noopener"
or
rel="noreferrer"
to any external links to improve performance and prevent security vulnerabilities
<a class="a_" rel="noreferrer" href="http://orthodoxy.ge" target="_blank" title="მართლმადიდებლური საიტი orthodoxy.ge">orthodoxy.ge</a>
Links that the
noreferrer
was used:
orthodoxy.ge
teodore.ge
qadageba.ge
calculate age based on the provided date of birth
function age($dob) {
    // Seconds in a year
    $seconds = 31556926;

    // Calc. age based on the provided date_of_birth val
    $age = floor((time() - strtotime($dob)) / $seconds);

    return $age;
}
fields types in mysql table relationships
In
many to many
relationship
user_id
inside
user_roles
table must be exactly the same as the
id
field inside
users
table Example: if
users->id
is
bigint(20) unsigned
then
user_role->user_id
must be exactly
bigint(20) unsigned
php artisan make:model Asset -m -c -r
Long version of the above command would be:
php artisan make:model Asset --migration --controller --resource
$Datetime_object = DateTime::createFromFormat('Y-m-d', "2020-12-23");
short_open_tag
If we want to use short open tag
<?
instead of
<?php
then we must configure
short_open_tag
setting in
php.ini
to
on
<?
echo '"short_open_tag" should be ON if we want to use short tags ' ;
?>
Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds (example: Cache-Control: max-age=3600``)
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
The type of encoding used on the data
Content-Encoding: gzip
The MIME type of this content
Content-Type: text/html; charset=UTF-8
A name for the server
Server: nginx
The date and time that the message was sent
Date: Fri, 30 Oct 2020 14:42:53 GMT
Gives the date/time after which the response is considered stale
Expires: Thu, 01 Dec 1994 16:00:00 GMT
Media types that are acceptable for the response
Accept: text/html, application/xml,...
List of acceptable encodings (HTTP compression types)
Accept-Encoding: gzip, deflate, br
An HTTP cookie previously sent by the server with Set-Cookie (below)
Cookie: _ga=GA1.2.588481944.1592916481; _fbp=fb.1.1592916481604.1420873611; ...
The user agent string of the user agent (browser identifier string)
User-Agent: Mozilla/5.0 (Linux...
Authentication credentials for HTTP authentication
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
The email address of the user making the request
From: user@example.com
The length of the request body in octets (8-bit bytes).
Content-Length: 348
... Note:
browsers that do not support compliant compression method will download uncompressed data
Results: 1022