1 2 3 4 5 6 7 8 |
# to disable access.log cache_access_log /dev/null # to disable store.log cache_store_log none # to disable cache.log cache_log /dev/null |
1 2 3 4 5 6 7 8 |
# to disable access.log cache_access_log /dev/null # to disable store.log cache_store_log none # to disable cache.log cache_log /dev/null |
1 2 3 4 5 6 7 8 9 10 |
acl localhost src 127.0.0.1/32 acl localnet src 192.168.0.0/24 http_access allow localnet http_access allow localhost http_access allow all #!! Delete the deny all. !! |
!! ////
1 2 3 4 5 6 7 |
acl RestrictedHost src 192.168.1.23 # # Add this at the top of the http_access section of squid.conf # http_access deny RestrictedHost http_access allow home_network business_hours |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File: /usr/local/etc/allowed-sites.squid www.kutayzorlu.com # File: /usr/local/etc/restricted-sites.squid www.illegal.com # # Add this to the bottom of the ACL section of squid.conf # acl home_network src 192.168.1.0/24 acl business_hours time M T W H F 5:00-13:00 acl allowed dstdomain "/usr/local/etc/allowed-sites.squid" acl denied dstdomain "/usr/local/etc/restricted-sites.squid" # # Add this at the top of the http_access section of squid.conf # http_access deny denied http_access allow allowed # kutayzorlu.com |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
sudo nmap -O kutayzorlu.com sudo nmap -PN remote_host Specify a range with "-" or "/24" to scan a number of hosts at once: sudo nmap -PN xxx.xxx.xxx.xxx-yyy Scan a network range for available services: sudo nmap -sP network_address_range Scan without preforming a reverse DNS lookup on the IP address specified. This should speed up your results in most cases: sudo nmap -n google.com Scan a specific port instead of all common ports: sudo nmap -p port_number remote_host To scan for TCP connections, nmap can perform a 3-way handshake (explained below), with the targeted port. Execute it like this: sudo nmap -sT google.com To scan for UDP connections, type: sudo nmap -sU google.com Scan for every TCP and UDP open port: sudo nmap -n -PN -sT -sU -p- remote_host A TCP "SYN" scan exploits the way that TCP establishes a connection. sudo nmap -sS google.com A more stealthy sudo nmap -PN -p port_number -sN kz.com sudo nmap -PN -p port_number -sV kz.com |
1 |
API Reference > IWebmasterApi Members |
1 2 3 4 |
void SubmitUrl( string siteUrl, string url ) |
1 2 3 4 5 6 7 8 9 |
POST /webmaster/api.svc/pox/SubmitUrl?apikey=EEDECC1EA4AE341CC57365E075EBC8B6 HTTP/1.1 Content-Type: application/xml; charset=utf-8 Host: ssl.bing.com Content-Length: 127 <SubmitUrl xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Bing.Webmaster.Api"> <siteUrl>http://example.com</siteUrl> <url>http://example.com/url1.html</url> </SubmitUrl> |
from : https://msdn.microsoft.com/en-us/library/jj554133.aspx
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
namespace kutayzorlucom_webServeice_BING_API_EXAMPLE { using System; using System.Linq; using System.ServiceModel; internal class Program { private static void Main(string[] args) { var api = new WebmasterApi.WebmasterApiClient(); try { var oneMonthAgo = DateTime.Now.AddMonths(-1); var stats = api.GetRankAndTrafficStats("http://www.kutayzorlu.com/") .Where(s => s.Date > oneMonthAgo) .OrderBy(s => s.Date); Console.WriteLine("Date\tImpressions\tClicks"); foreach (var value in stats) { Console.WriteLine( value.Date.ToShortDateString()+", "+value.Impressions, value.Clicks); } } catch (FaultException<WebmasterApi.ApiFault> fault) { Console.WriteLine("Failed to add site: {0}", fault.Message); } } } } |
How to get API KEY (https://msdn.microsoft.com/en-us/library/hh969388.aspx)
1 2 3 4 5 6 7 8 9 |
Getting your API Key To be able to get your Webmaster API Key, follow the steps below: Sign into your Bing Webmaster account at http://www.bing.com/webmaster with your LiveID. If you do not already have a LiveID you can get one by clicking "Sign up with Windows LiveID” If you have no verified sites, please add and verify one. Then click on any site and select Webmaster API on the left hand side. Read the Terms and Conditions if not done so already Select on Generate to create an API Key. You only get 1 API key at a time |
The Bing Webmaster Tools API Services has the following protocols that can be used to get, call, submit, and retrieve data from Bing Webmaster to your website.
SOAP – Simple Object Access Protocol
Simple Object Access Protocol (“SOAP”) is a structure on which to exchange information with Extensible Markup Language (“XML”). Example of SOAP is that you could send a SOAP message to a website that has Web Services Enabled and receive information back from the website in XML that could then be used or implemented into a website.
POX/HTTP – Plain Old XML over HTTP
Plain Old XML (“POX”) is a term for basic XML and is an information format style. POX is compatible with the XML Schema. POX messages can be sent and received by many types of clients, including clients such as Web browsers that do not have any native support for SOAP-based protocols. POX is a suitable choice for services that exchange data over HTTP and have no requirement to use the advanced protocol capabilities of SOAP and WS-* such as non-HTTP transports, message exchange patterns other than request/response, and message-based security, reliability, and transactions.
JSON/HTTP – JavaScript Object Notation over HTTP
JavaScript Object Notation (“JSON”) is an imitated or copied from the JavaScript Language in order to provide simple data structures that can be text based.
1 2 3 4 5 6 7 8 |
Exception: System.Collections.Generic.KeyNotFoundException Message : The given key was not present in the dictionary. Stack Trace: at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at MySql.Data.MySqlClient.CharSetMap.GetCharacterSet(DBVersion version, String CharSetName) at MySql.Data.MySqlClient.CharSetMap.GetEncoding(DBVersion version, String CharSetName) at MySql.Data.MySqlClient.Driver.Configure(MySqlConnection connection) |
Solution
UPGRADE your MYSQL DATA .DLL
M:Download >>>> MySql.Data.zip
http://dev.mysql.com/downloads/connector/net/5.1.html
For more look link given above
1 2 3 4 5 6 7 |
System.Collections.Generic.KeyNotFoundException: Der angegebene Schlüssel war nicht im Wörterbuch angegeben. bei System.ThrowHelper.ThrowKeyNotFoundException() bei System.Collections.Generic.Dictionary`2.get_Item(TKey key) bei MySql.Data.MySqlClient.CharSetMap.GetCharacterSet(DBVersion version, String CharSetName) bei MySql.Data.MySqlClient.CharSetMap.GetEncoding(DBVersion version, String CharSetName) bei MySql.Data.MySqlClient.Driver.Configure(MySqlConnection connection) bei MySql.Data.MySqlClient.MySqlConnection.Open() |
1 2 |
CREATE TABLE kutay LIKE oldtable; INSERT kutay SELECT * FROM oldtable; |
normally 32 bit system and integer value of count of IP rules apprx.. some millions.
BUT I tested it myself on my SERVER. after 56 000 , (56 Thousands) it becomes slower.
My server has SSD disk and 16 GB memory.
But this is changable. If you do good firewall script, You can use 2 million IP rules with best performance.