header ad

Saturday, August 11, 2018

How would I find the user-agent from the http requests which were made to my website?

Questions:

  1. When users make requests to our website where is the information from our http request header stored?
  2. Can you access the user-agent from this (for example googlebot)[Would this be done with a serverside language like ruby/php?]
Answer

The user agent is an optional header for the http request your website receives. It's not necessarily 'stored' anywhere after the web request is complete. Depending on the logging on your web server, it may be part of the access log, or it may not be included in that log. If you haven't been logging or collecting the user agent headers, you don't have any way of getting them from requests that are already complete, but you can always start logging them now.

This header, like all the http headers, would be available to any server side script that was passed the request headers (I don't know of any server side that doesn't passed the headers one way or another), so the answer to your second question is, yes.

Wednesday, August 8, 2018

How to Find a spam script location with Exim - VPS / Dedicated Server

I this tutorial I'll guide you how to check the Exis mail log on your VPS or Dedicated server using command. This will help you to find spammers script location in the server, or their own in order to relay spam from your server.

What happen when sending spam mails from server?

When your IP sending spam mails from server can damage the sending reputation of your mail IP address, and lead to issues such as making you end up on a blacklist.

How do I stop spam coming from my server?

Exim, or the MTA (Mail Transfer Agent) on your server handles email deliveries. All email activity is logged including mail sent from scripts. It does this by logging the current working directory from where the script was executed. Using this knowledge you can easily track down a script of your own that is being exploited to send out spam, or locate possibly malicious scripts that a spammer has placed onto your server.

Locate top scripts sending into Exim

01. Login to your server via SSH as the root user.

02. Run the following command to pull the most used mailing script's location from the Exim mail log:
grep cwd /var/log/exim_mainlog | grep -v /var/spool | awk -F"cwd=" '{print $2}' | awk '{print $1}' | sort | uniq -c | sort -n

03. You will get back something like this:
15 /home/userna5/public_html/about-us 25 /home/userna5/public_html 7866 /home/userna5/public_html/data

We can see /home/userna5/public_html/data by far has more deliveries coming in than any others.

Sunday, June 29, 2014

Web Design Sri Lanka

Web Design Sri Lanka 

Web Design Sri Lanka

Webivox is a Professional Web Design Company in Sri Lanka. We have more than 4 years of experience in Web Design Sri Lanka, CMS Web Design Sri Lanka, Ecommerce web design Sri Lanka, Catalog web design Sri Lanka and other web related services. Our Web Design services are closely touch with latest technologies, free 1 year web hosting and domain registration. You can check our web design portfolio using this link http://www.webivox.com/our-work. We are not only design and host your website. We can promote your website through Social Media, SEO, Adword and etc as your request. At our web development company Sri Lanka, We have latest techniques such as HTML5 Web Design, PHP Web Development, MAGENTO Web Design, JOOMLA Web Design, WORDPRESS Web Design, DRUPAL Web Design and etc. Our Web Design Sri Lanka services always come with full customer satisfaction.
















Friday, March 7, 2014

How to enable mcrypt on localhost (Appserv)

01. Go to C:\AppServ\php5\
02. Copy libmcrypt.dll to C:\AppServ\php5\ext\ and C:\Windows\System32
03. Open PHP.in file (C:\Windows\php.ini)
04. Find ;extension=php_mcrypt.dll and replace extension=php_mcrypt.dll
05. Restart your Appserv

Web Design Sri Lanka + Web Hosting Sri lanka  + Web Design portfolio

Saturday, January 5, 2013

Enable .htaccess on localhost

Simply modify this line in the C:\AppServ\Apache2.2\conf\httpd.conf

#LoadModule rewrite_module modules/mod_rewrite.so

to this

LoadModule rewrite_module modules/mod_rewrite.so

Web Design Sri Lanka + Web Hosting Sri lanka  + Web Design portfolio