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

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.

Yerel Grup İlkesi - USB Engelleme

Computer Configuration  > Administrator Templates > System > Removable 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

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).
Add_Microsoft_Account_Windows_Mail_App.png
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.
Use_Work_Account_Sign_in_Windows_Store_Apps.png
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.
Allow_Microsoft_Account_Optional_Windows_Store_Apps.png
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
Disable_Microsoft_Account_Requirement_Windows_Store_Apps.png
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

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

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;
@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

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.

27 Aralık 2015 Pazar

Shalla's Blacklists Categories

CategoryDescription
advAll about advertising: This includes sites offering banners and banner creation as well as sites delivering banners to be shown in webpages. Advertising companies are listed, too.
aggressiveSites of obvious aggressive content. This coveres hate speech and all kinds of racism.
alcoholSites of breweries, wineries and destilleries. This category also covers sites that explain howto make beer, wines and spirits.
anonvpnThis category covers sites providing vpn services to the public. The focus is on vpn sites used to hide the origin of the traffici like tor nodes.
The category does not include company vpn accesses.
automobile/bikesAll around motorcycles. Included are vendor sites, resellers, fan and hobby pages as well as and suppliers. Scooters included.
automobile/boatsAll around motorboats. Included are vendor sites, resellers, fan and hobby pages as well as and suppliers. Not included are travel tips (this can be found in recreation/travel).
automobile/carsAll around cars. Included are automobile companies and automotive suppliers.
automobile/planesAll around planes ranging from small one and two seaters up to the large traffic planes, old and new, private, commercial and military. Vendors and supplier are included (airports are not). Helicopter sites are included as well.
chatSites for realtime chatting and instant messaging. Everything that is not realtime is included in -> forum.
costtrapsSites that lure with free of charge services but then give you a costly abbonement (written somewhere in tiny letters nearly unreadable).
datingSites to contact people for love and live together. He seeks her, she seeks him and so on.
downloadsThis covers mostly filesharing, p2p and torrent sites. Other download sites (for software, wallpapers, ..) are included as well.
drugsSites offering drugs or explain how to make drugs (legal and non legal). Covers tabacco as well as viagra and similar substances.
dynamicAll domains where people log in from one obtaining a dynmic IP address. Dynamic sites can be most harmless as well as carry redirecting proxies to bypass the webfilter or porn, games or anything else why may be inappropiate.
education/schoolsHome pages of schools, colleges and universities.
finance/bankingHome page of banking companies are listed here. This is not restricted to online banking.
finance/insuranceSites of insurance companies, about information about insurances and link collections concering this subject.
finance/moneylendingSites one can apply for loans and mortgages or can obtain information about this business.
finance/realestateSites about all types of realestate, bying and selling homes, finding appartments for rent and selling.
finance/tradingSites about the stock exchange market, trading of stocks and stock options as well as sites related to this subject.
finance/otherAll financial pages that do not fit in the financial categories above.
fortunetellingAll sites about astrology, horoscopes, numerology, palm reading and so on; sites that offer services to forsay the future.
forumDiscussion sites. Covered explicit forum sites and some blogs. Sites where people can discuss and share information in a non interactive/realtime way. Realtime discussions are covered with -> chat.
gambleSites offering the possibility to win money. Poker, Casino, Bingo and other chance games as well as betting sites. Differs from -> hobby/games in the aspect of winning or loosing money or being lured to do so.
governmentSites belonging to the goverment of a country, county or city.
hackingSites with information and discussions about security weaknesses and how to exploit them. Sites offering exploits are listed as well as sites distributing programs that help to find security leaks.
hobby/cookingSites concering food and food preparation.
hobby/games-miscSites related to games. This includes descriptions, news and general information about games. No gamble sites.
hobby/games-onlineSites about online games (all kinds of browserbased games). The games are for fun only (no gamble).
hobby/gardeningSites about gardening, grewing plants, fighting bugs and everything else related to gardening.
hobby/petsSites about all topics concerning pets: description, raise, food, looks, fairs, favorite pet stories and so on.
homestyleSites about everything required to create a cozy home (interior design and assesoirs).
hospitalsSites of hospitals and medical facilities.
imagehostingSites specialized on hosting images, photogalleries and so on.
ispHome pages of Internet Service Providers. Site of companies offering webspace only are now being added, too.
jobsearchPortals for job offers and job seekers as well as the career and work-for-us pages of companies.
libraryOnline libraries and sites where you can obtain and/or read e-books. Book shops are not listed here but under shopping.
militarySites of military facilites or related to the armed forces.
modelsModel agency, model and supermodel fan pages and other model sites presenting model photos. No porn pictures.
moviesSites offering cinema programs, information about movies and actors. Sites for downloading video clips/movies (as long it is legal) are included as well.
musicSites that offer the download of music, information about music groups or music in general.
newsSites presenting news. Homepages from newspapers, magazines and journals as well as some blogs.
podcastsSites offering podcasts or podcast services.
politicsSites of political parties, political organisations and associations; sites with political discussions.
pornSites about all kinds of sexual content ranging from bare bosoms to hardcore porn and sm.
radiotvDomains and urls of TV and radio stations, regardless whether they offer any programs on the site or just displaying a static page.
The sites offering streams are still collected in webradio and webtv, respectively.
recreation/humorHumorous pages, comic strips, funny stories, everything which makes people laugh.
recreation/martialartsSites dedicated to martial arts such karate, kung fu, taek won do as well as fighting sports sites like ufc. All site listed in this category are also part of sports. This category is meant for users who wish to allow sports but no "aggressive" kind of sports.
recreation/restaurantsSites of restaurants as well as restaurant descriptions and comentaries.
recreation/sportsAll about sports: sports teams, sport discussions as well as information about sports people and the varios sports themselves.
recreation/travelSites with information about foreign countries, travel companies, travel fares, accomondations and everything else that has to do with travel including travel blogs.
recreation/wellnessHere: Sites about treatments for feeling internally and externally healthy and beautiful again.
redirectorSites that actively help to bypass url filters by accepting urls via webform and play a proxing and redirecting role.
religionSites with religious content: all kind of churches, sects, religious interpretations and so on.
remotecontrolSites offering the service to remotely access computers, expecially (but not limited to going) through firewalls. This includes using a third party computer. Traditional VPN is not covered.
ringtonesSites that offer the download of ringtones or present other informations about ringtones.
science/astronomySites of institutions as well as of amateurs about all topics of astronomy.
science/chemistrySites of institutions as well as of amateurs about all topics of chemistry.
searchenginesCollection of seach engines and directory sites.
sex/educationSites explaining the biological functions of the body concerning sexuality as well as sexual health; this, too, covers sites for teenagers with questions about firstlove, first sex, and subjects related to this topics. This category does not cover porn.
sex/lingerieSites selling and presenting sexy lingerie or lingerie in a sexy manner.
shoppingSites offering online shopping and price comparisons.
socialnetSites bringing people together (social networking) be it for friendship or for business.
spywareSites that tries to actively try to install software (or lure the user in doing so) in order to spy the surfig behaviour (or worse). This category includes trojan and phishing sites. The homecalling site where the collecting information is sent are listed, too.
trackerSite keeping an eye on where you surf and what you do in a passive. Covers web bugs, counters and other tracking mechanism in web pages that do not interfere with the local computer yet collecting information about the surfing person for later analyis. Sites actively spying out the surfer by installing software or calling home sites are not covered with tracker but with -> spyware.
updatesitesKind of white list to allow necessary downloads from vendors. Thought as a correction to the downloads category.
urlshortenerDomains that can be used to shorten long URLs. The orginal (long) URL will be accessed after the the short URL has been requested from the shortener. This distinguishes this category from redirector where the orginal URL is never accessed directly.
violenceSites about killing and harming people. Covers anything about brutality and beastiality.
warezCollection of sites offering programs to break licence keys, licence keys themselves, cracked software and other copyrighted material.
weaponsSites offering all kinds of weapons or accessories for weapons: Firearms, knifes, swords, bows,... . Armory shops are included as well as sites holding general information about arms (manufacturing, usage).
webmailSites that offer web-based email services.
webphoneSites that enable user to phone via Internet/WWW. Any site where users can voice-chat with each other (normal chat sites, where users type their messages are part of chat, not webphone).
webradioSites that offer listening live radiostreams.
webtvCollection of site offering live TV streams via world wide web.

Blacklists


Pfsense Squid ve SquidGuard Kurulumu

İlk önce SquidGuard, sonra Squid kur.
Tüm ayarları yaptıktan sonra, en son apply tuşuna bas.

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:
  1. Altering registry values for USB Mass Storage Devices.
  2. Disabling USB Ports from Device Manager.
  3. By Un-installing the USB Mass Storage Drivers
  4. Using third-party freeware
  5. 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.
  1. Go to Start > Run , type “regedit” and press enter to open the registry editor
  2. 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.