Solved

annoying referer

Posted on 2008-10-02
1
173 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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 …
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

758 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

20 Experts available now in Live!

Get 1:1 Help Now