Web

WORDPRESS WP-ADMIN SECURITY – WP LOGIN PAGE SECURITY ON APACHE

WORDPRESS WP-ADMIN SECURITY – WP LOGIN PAGE SECURITY ON APACHE

Fadıl

You may be quite bored with the brute-force attacks on the admin page of your WordPress blogs, by default, forbidding the admin panel page to be opened with the wp-admin attachment for everyone will be one of the most logical actions you should take in the name of security.

You can do this simply by installing the plugin by configuring the following configurations.

First we edit the file “nano /etc/httpd/conf/httpd.conf”  with nano. You can choose a different editor.

Using The Date Command In PHP

Fadıl

Make your site look like you actually update it!
In php create a script that receives the date current date!  So people might actually think you update it.  Well, only in some accessions does that really work, but you never know.
Lets get to work…

(string format [, int timestamp])
EXAMPLE

The output of the script should produce the following…
Mon,December,18,2019
The following characters are recognized in the format string, so you can customize your time

HTTP Authentications using PHP

Fadıl

The HTTP Authentication hooks in PHP are only available when it is running as an Apache module and is hence not available in the CGI version. In an Apache module PHP script, it is possible to use the Header() function to send an “Authentication Required” message to the client browser causing it to pop up a Username/Password input window. Once the user has filled in a username and a password, the URL containing the PHP script will be called again with the variables, $PHP_AUTH_USER, $PHP_AUTH_PW and $PHP_AUTH_TYPE set to the user name, password and authentication type respectively.

How To Set A Cookie

Fadıl

Cookies are little pieces of text that are sent to a user’s Web browser. Cookies can help you create shopping carts, user communities, and personalized sites. It’s not recommended that you store sensitive data in a cookie, but you can store a unique id string that will match a user with the data held securely in a database.

Enough with the boring stuff here is how to set a cookie using the setcookie() command.

How to Improved Caching with PHP

Fadıl

Introduction

In the last Code Gallery Spotlight, we examined a PHP class that performed very simple data caching. This time around we are going to explore the same topic, but we will add new functionality in order to increase efficiency and reduce the chance of errors. The class we will be examining this time around uses file locking and employs some better coding techniques than the last class we used.
If you missed the last, you can find it at https://techsoftcenter.com/caching-variables-with-php/