|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Newcomer Join Date: Apr 2007
Posts: 5
![]() | Hello, My forum is currently being submitted to traffic exchanges and autosurf scripts without my permission. I know what sites it is, but how can I block those sites so that my forum does not appear on their rotators? The only code I have is this and I dont know where it goes. Can someone help? Code:
My forum is using vbulletin 3.6.5. |
| |
|
| |||||||
| | #2 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Something like that, you would want to place at the top of your document, probably in your template file or your header template. Make sure that it shows on every page. Do you know what code you are going to place instead lf "block it"? |
| |
| | #3 |
| Newcomer Join Date: Apr 2007
Posts: 5
![]() | Thanks for replying. I do not know what code I should place nor do I know how it should be written out. vbulletin accepts coding different than what I have written here. Can you help me out with the correct coding for vbulletin? vbulletin accepts code using conditional in this manner <if condition= > </if> Thanks |
| |
| | #4 |
| Junior Member Join Date: Mar 2007
Posts: 92
![]() | Those conditions are for templates. Find your index php file and try something like Code:
at the top of the script. |
| |
| | #5 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | No, unfortunately I don't know anything about vB code. I would think that standard PHP would work in this case though. If you can use PHP, I would suggest you redirect the visitor somewhere else using Code:
You could redirect them back to where they came from, or simply take them to a page that you created for those visitors. If you are using Apache Server, there is a way to redirect traffic using .htaccess too, but I don't know enough about that to advise you on. Ultimate htaccess Article is a great place to get info on .htacess. |
| |
| | #6 |
| Junior Member Join Date: Mar 2007
Posts: 92
![]() | Yes, the best way would be to block it in .htaccess if it has only one IP. ![]() Code:
Where "x.x.x.x" is spider's IP. |
| |
| | #7 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | If you have apache, try this, replace "badreferrer" with the name of the website you want to block. This is the code that you want to put into your .htaccess file in the root directory of your site. If one doesn't exist, you can create one, it's just a simple text file. Code:
|
| |
| | #8 | |||
| Newcomer Join Date: Apr 2007
Posts: 5
![]() | Quote:
Well, they have several IPs. If I block all of their IPs, will that site still be able to display my site on their rotator? Quote:
I tried this, but it has not worked. This is how I wrote the rewrite code, check it out: Code:
Is this right? This is another code I am working with: Quote:
Guys, I got it. Thanks a bunch. I tested it on that site and now my forum does not appear on it. This is what I was after. Thanks a bunch. I put the codes in my index.php file. Thank you everyone. ![]() Regular php functions with vbulletin as vbulletin is php as well. ty ![]() Last edited 04-08-2007 at 08:49 PM. | |||
| |
| | #9 |
| Junior Member Join Date: Mar 2007
Posts: 92
![]() | Which solution did you use? |
| |
| | #10 |
| Newcomer Join Date: Apr 2007
Posts: 5
![]() | I actually have both of these codes in my forum's index.php file and my blog portal index.php file. Code:
I didn't check to see which one would work best as I just wanted to end my situation immediately. When I have some free time left, I will update accordingly. ![]() Thanks. |
| |
| | #11 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I'm glad it worked out for you. Congrats. |
| |
| | #12 |
| Senior Member Join Date: Apr 2006 Location: Hull, United Kingdom.
Posts: 317
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Hi there, I don't see the point in these click rotators, they don't give the user any advantage what so ever. I mean all it does is waste bandwidth and give the website more hits, unique visitors are the important factor. It must be one of the most pointless things of the Internet after spam. Regards, Kieran Taylor. |
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need a script | astrovineet | Content | 3 | 12-28-2006 12:12 PM |
| look at this new script | Stevo | Your directory | 0 | 10-24-2006 10:48 PM |
| C++ Script | ken | Programming | 1 | 10-07-2006 04:35 PM |
| 100% UNIQUE and CUSTOM arcade script. Start your own arcade script business! | Skribblez | Websites for Sale | 4 | 06-16-2006 05:54 PM |
| Is there such a script...? | redQueen | Programming | 3 | 01-10-2006 05:42 PM |