27 Aralık 2016 Salı
Wordpress CSS ile meta bilgilerini kaldırmak
.entry-meta .cat-links, .entry-meta .cat-links a, .tag-links, .tag-links a { display: none; }
.read-more{ display:none !important; }
.entry-meta { display: none; }
.entry-meta .by-author, .entry-meta .date { display: none; }
10 Aralık 2016 Cumartesi
Wordpress SSL Kurulumu
wp-config.php
define( 'WP_SITEURL', 'https://google.com' );
define( 'WP_HOME', 'https://google.com' );
define( 'FORCE_SSL_LOGIN', true );
define( 'FORCE_SSL_ADMIN', true );
.htaccess
#BEGIN WordPress RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://google.com/$1 [R,L] RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] #END WordPress
define( 'WP_SITEURL', 'https://google.com' );
define( 'WP_HOME', 'https://google.com' );
define( 'FORCE_SSL_LOGIN', true );
define( 'FORCE_SSL_ADMIN', true );
.htaccess
#BEGIN WordPress RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://google.com/$1 [R,L] RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] #END WordPress
28 Ocak 2016 Perşembe
Yerel Grup İlkesi - Denetim Masası Engelleme
Kullanıcı yapılandırması / Yönetim Şablonları / Denetim masası
Ve bu bölümde Denetim masasına erişimi yasakla seçeneği var.
Ve bu bölümde Denetim masasına erişimi yasakla seçeneği var.
Yerel Grup İlkesi - USB Engelleme
Computer Configuration > Administrator Templates > System > Removable Storage Access.
Table below shows the possible settings for the USB storage access:
Table below shows the possible settings for the USB storage access:
Setting Option
|
Enable USB Storage (Default)
|
Read Only Storage
|
Disable USB Storage
|
Removable Disk: Deny execute access
|
Not configured
|
Not configured
|
Enable
|
Removable Disk: Deny read access
|
Not configured
|
Not configured
|
Enable
|
Removable Disk: Deny write access
|
Not configured
|
Enable
|
Enable
|
Program Kurulumunu Engelleme
Başlat > Çalıştır > gpedit.msc
Yerel grup ilkesi düzenleyicisi açılacak.
Yöentim Şablonları > Windows Bileşenleri > Windows Installer > Kullanıcı Yüklemesini Yasakla seçeneğine tıklayıp ilkeyi düzenle
Yerel grup ilkesi düzenleyicisi açılacak.
Yöentim Şablonları > Windows Bileşenleri > Windows Installer > Kullanıcı Yüklemesini Yasakla seçeneğine tıklayıp ilkeyi düzenle
Windows 10 Kullanıcının Microsoft Account Açmasını Engelleme
Windows 10
https://www.youtube.com/watch?v=D25TvWS62RY
In Windows 8 or Windows 8.1, whenever you try to open some Windows Store apps (aka Metro apps) such as Mail, Calendar, People, etc, Windows asks you to sign in using a Microsoft account (formerly known as Windows Live ID).
These apps don't allow their use until you sign in using your Microsoft account such as Hotmail ID, etc. You can't use other accounts to sign into those apps.
But did you know Microsoft added a new option in Windows 8.1 which allows you to disable this requirement and use enterprise email IDs to sign into all these Windows Store apps which require Microsoft account?
Yes, that's true. Windows 8.1 comes with a built-in feature to turn Microsoft account requirement off but by default this feature or option is not enabled and you need to enable this option so that you can use your work account.
Once you enable this option, you can provide correct work account details such as email ID, password, server address, domain name, etc to sign into Windows Store apps such as Mail successfully without using Microsoft account.
You can disable Microsoft account requirement in Windows 8.1 Store apps using any of following 2 ways:
- METHOD 1: Using Group Policy Editor (gpedit.msc)
- METHOD 2: Using Registry Editor (regedit)
METHOD 1: Using Group Policy Editor (gpedit.msc)
1. Type gpedit.msc in RUN or Start search box and press Enter. It'll open Group Policy Editor.
2. Now go to:
Computer Configuration -> Administrative Templates -> Windows Components -> App runtime
3. In right-side pane, look for "Allow Microsoft accounts to be optional" option.
4. The option would be set to Not Configured. Double-click on it and set it to Enabled.
That's it. It'll immediately turn off Microsoft account sign in requirement in Windows Store apps.
PS: To restore default behavior, set the "Allow Microsoft accounts to be optional" option toNot Configured.
METHOD 2: Using Registry Editor (regedit)
If you don't want to use or can't use Group Policy Editor, you can take help of Registry Editor for the same task. Just follow these simple steps:
1. Type regedit in RUN or Start search box and press Enter. It'll open Registry Editor.
2. Now go to following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
3. In right-side pane, create a new DWORD MSAOptional and set its value to 1
4. Close Registry Editor and restart your system or restart Explorer as mentioned here. After restart, Microsoft account sign in will no longer be required in Windows Store apps.
PS: To restore default settings in future, delete the DWORD MSAOptional created in step 3.
23 Ocak 2016 Cumartesi
Ubuntu Network Intercafes
vi /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 8.8.8.8 8.8.4.4
22 Ocak 2016 Cuma
Vmware'de Kurulan İşletim Sistemine Erişim
6 Ocak 2016 Çarşamba
Pfsense Proxy Server Custom Options
Proxy server: General settings - Custom Options
url_rewrite_program /usr/pbi/squidguard-amd64/bin/squidGuard -c /usr/pbi/squidguard-amd64/etc/squidGuard/squidGuard.conf;url_rewrite_bypass off;url_rewrite_children 16 startup=8 idle=4 concurrency=0
url_rewrite_program /usr/pbi/squidguard-amd64/bin/squidGuard -c /usr/pbi/squidguard-amd64/etc/squidGuard/squidGuard.conf;url_rewrite_bypass off;url_rewrite_children 16 startup=8 idle=4 concurrency=0
5 Ocak 2016 Salı
Batch Dosyası İle Network Ayarlarını Değiştirmek
doğru olan bağlantıyı bulmak için;
netsh interface show interface
ip adresini otomatik değiştirmek için komut;
netsh int ip set address "Local Area Connection" address=192.168.1.6 mask=255.255.255.0 gateway=192.168.1.1 1
batch dosyasını yönetici olarak çalıştırmak gereklidir.
batch dosyası içeriği;
netsh interface show interface
ip adresini otomatik değiştirmek için komut;
netsh int ip set address "Local Area Connection" address=192.168.1.6 mask=255.255.255.0 gateway=192.168.1.1 1
batch dosyasını yönetici olarak çalıştırmak gereklidir.
batch dosyası içeriği;
@ECHO off
cls
:start
ECHO.
ECHO 1. 192.168.2.1
ECHO 2. 192.168.1.1
ECHO 3. DHCP
ECHO 4. Exit
set choice=
set /p choice=Type the number to print text.
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto con1
if '%choice%'=='2' goto con2
if '%choice%'=='3' goto con3
if '%choice%'=='4' goto end
ECHO "%choice%" is not valid, try again
ECHO.
goto start
:con1
ECHO Connecting Wi-Fi Mutation Static IP
netsh interface ip set address "Wi-Fi" static 192.168.2.6 255.255.255.0 192.168.2.1 1
goto end
:con2
ECHO Connecting Wi-Fi Home Static IP
netsh interface ip set address "Wi-Fi" static 192.168.1.6 255.255.255.0 192.168.1.1 1
goto end
:con3
ECHO DHCP
netsh interface ip set address "Wi-Fi" dhcp
goto end
:bye
ECHO BYE
goto end
:end
Lightsquid Real Name Ayarlama
If you have local DNS server, you can use 'DNS' or 'Demo' IP resolve method.
File /usr/local/etc/lightsquid/realname.cfg contains:
192.168.1.2 Sergey Erokhin
192.168.1.1 Jon Doe
192.168.1.3 Tech Good
File /usr/local/etc/lightsquid/realname.cfg contains:
192.168.1.2 Sergey Erokhin
192.168.1.1 Jon Doe
192.168.1.3 Tech Good
Pfsense Proxy Traffic Management
Maximum Download size: Toplam indirilebilir, doysa boyutunu sınırladığımız bölümdür. Dosya sınırını kilobyte cinsinden belirtilmedir.
Maximum Download Size: Dosya gönderirken izin verilecek en büyük dosya büyüklük sınırı.
Overal bandwifth thorttling: Toplam bant genişliğini sınırlayabileceğim alandır.
Per-Host throttling: Kişi başı kullanılabilecek Maximum anlık bantgenişliğini belirlediğimiz bölümdür.
29 Aralık 2015 Salı
Pfsense VPN Yasaklama
port aliası oluştur
53,80,587,110,3389 bu portlara herkese izin ver
en üstte bu kuralı çek
ultrasurf görülen makinelerin ip lerini aliasta topla
65535 e kadar olan tüm portları ultrasurf kullanan iplere yasakla
443 portundan çıkması gereken portlara ip subnet bazlı izin ver
Google,bankalar vs.
443 portundan çıkması gereken portlara ip subnet bazlı izin ver
Google,bankalar vs.
27 Aralık 2015 Pazar
Shalla's Blacklists Categories
|
Pfsense Squid ve SquidGuard Kurulumu
İlk önce SquidGuard, sonra Squid kur.
Tüm ayarları yaptıktan sonra, en son apply tuşuna bas.
Tüm ayarları yaptıktan sonra, en son apply tuşuna bas.
26 Aralık 2015 Cumartesi
21 Aralık 2015 Pazartesi
Adding a VMware workstation VM to windows startup
How about this then. Create a bat file with the following text inside and add that to the startup folder:
cd "\Program Files\VMware\VMware Workstation"
vmware -x "C:\My virtual machine\winxppro.vmx"
You can also create a desktop Icon (shortcut) on the Windows desktop to launch VMware Workstation and automatically start a VM
How to Reset a WordPress Password from phpMyAdmin
Step 1 – Identify the Name of your Database
It is always good to know the name of your WordPress Database. Sometimes you might be running multiple installations within the same database, then you will need to know exactly where to look for to reset the password. The best place to look is your wp-config.php file which is located in your root WordPress Directory. In there you will find the name of your database.
Step 2 – Locating Database and Editing the Fields
In your cPanel or other admin panel, you will need to access your MySQL database and then browse it via phpMyAdmin.
Once you are in phpMyAdmin, you will need to select the correct database on the left hand side. Look for the name that you found in your wp-config.php and click on that. You will see a list of tables with a prefix wp_ for the most part.
If you changed your prefix during installation, then you would be looking for that specific prefix “for ex: wp673_”.
You will look for the table wp_users, click on it and then click on the Browse Tab.
Click on the Pencil (Edit) Icon to reset your Password.
Now you will see a field that looks like this:
Edit the user_pass field value. You will notice that there are a lot of random characters in the password field. Due to security reasons, WordPress stores the passwords as MD5 Hash rather than Plain text.
This means that you will not be able to enter plain text as the password. You would need to use one of the MD5 generators online to generate your password.
Recommended Tool: JavaScript MD5
Simply type your password in that tool and generate MD5 results. Copy and paste the code you get from the converter into your phpMyAdmin field and click Go to save changes.
You have now successfully changed your WordPress Password from phpMyAdmin.
3 Ağustos 2015 Pazartesi
How to enable or disable USB Drives or Ports
How often you have witnessed blocked Pen drive or USB drive access in your work place or college or school? I believe many times; in fact every time you try to use the USB drive, you are not allowed, simply because the administrator has disabled USB drive detection on your Windows system. Again, how often has your data been stolen because someone connected an unauthorized USB to your computer and copied your files? Well, you don’t need to worry because the solution to disable or enable USB Ports is pretty simple.
Restrict access to USB drives
There are 5 ways an administrator can prevent using of USB Drives
They are:
- Altering registry values for USB Mass Storage Devices.
- Disabling USB Ports from Device Manager.
- By Un-installing the USB Mass Storage Drivers
- Using third-party freeware
- Using Microsoft Fix It.
Lets us look at how we can fix these problems and enable USB on Windows 7 PC.
1. Enable or Disable USB Drives and Mass Storage Devices using Registry
If the administrator is smart then he would definitely do this to ensure a tight blockade. He would alter the settings through regedit command on run console. Now how do you unlock it ? You have to go right into where the administrator has been. Here is how.
- Go to Start > Run , type “regedit” and press enter to open the registry editor
- Navigate to the following key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR
In the right pane, select Start and change the value to 3. (The value 4 will disable USB Storage). Click OK. This will re-enable USB Ports and allow you to use USB or Pen drives.
2. Disable USB Ports from Device Manager
If you still don’t find your USB drive working, you may have to look into the Device Manager. The Administrator could have possibly disabled the USB port here. Check out for any possibility in the Device Manager and enable the disabled port by right clicking on selected one and click Enable.
3. Uninstall USB Mass Storage Drivers
If the authorities are really worried about security in the school they would take the extreme step of un-installing the USB Mass Storage Drivers. To make things work, just install the device drivers. Here is how you do it.
As when you plug-in your USB drive, Windows will check for drivers, if not found Windows will prompt you to install the driver. This would definitely unlock the Pen drive at your School or office.
4. Use USB Drive Disabler / Enabler
You can download and use a free tool USB Drive Disabler / Enabler which will allow you to easily enable or disable USB drives on your Windows computer.
5. Prevent users from connecting USB
If a USB storage device is already installed on your Windows computer, you can edit the Windows Registry to ensure sure that the USB does not work when anyone connects it to the PC, using this Microsoft Fix it 50061. Check first if it applies to your version of the Windows operating system.
Kaydol:
Kayıtlar (Atom)









