Solved

annoying referer

Posted on 2008-10-02
1
184 Views
Last Modified: 2012-05-05
hello there,
I have seen in my awstats logs that about 120 sites from the same owner is sending traffic to my site and its not content related..
I would like to send back all his traffic.. so I can write down all his domains and have a php script that if it came from there then send it back
how can I do this?
0
Comment
Question by:XK8ER
1 Comment
 
LVL 22

Accepted Solution

by:
Ivo Stoykov earned 500 total points
ID: 22631461
Hello XK8ER

Here is a simple script that might give you an idea

HTH
I

if(ip2long($_SERVER['REMOTE_ADDR']) >= ip2long('XXX.XXX.XXX.XXX') && ip2long($_SERVER['REMOTE_ADDR']) <= ip2long('XXX.XXX.XXX.XXX'))

{

// it comes from forbidden range and must be cut off

  exit();

}

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now