NixUser

NixUser.com | Unix User | Linux User | NixUser

Filter rule to discard emails with .exe attachment in cPanel

  You can add custom email filters to discard email attachments in cPanel for a particular user. Use Global Filters option to add it for the whole account. For this, use Email Filters in cPanel >> Email Tab.   For example, you want to delete emails with .exe attachments.   In cPanel, go to Email More

WordPress Password Protection and mod_rewrite error

  I have added the following to my .htaccess file (password protected) to limit the access to wordpress login pages.   ErrorDocument 401 “Unauthorized Access” ErrorDocument 403 “Forbidden” <FilesMatch “wp-login.php”> AuthName “Authorized Only” AuthType Basic AuthUserFile /home/user/.htpasswd require valid-user </FilesMatch>   But after the change, the page won’t load, it gave out a infinite loop More

How to add header subject in postfix

  If you want to add subject in the postfix log files, add the following in main.cf file at the bottom.   vi /etc/postfix/main.cf   header_checks = regexp:/etc/postfix/header_checkssmtp_header_checks = regexp:/etc/postfix/header_checks   And add the lines below in /etc/postfix/header_checks files, create the file if it’s not already there.   /^subject:/ WARN/^X-PHP-Originating-Script:/ WARN   Now restart postfix More

How to see time stamps in bash history?

Enter the following command in terminal. HISTTIMEFORMAT=”%d/%m/%y %T ” Or, to make the change permanent for the current user: echo ‘export HISTTIMEFORMAT=”%d/%m/%y %T “‘ >> ~/.bashrcsource ~/.bashrc Now try the history command, you will see the timestamp along with the command history.

Previous Posts

WordPress theme designer: http://thememotive.com/.

%d bloggers like this: