1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is this possible?

Discussion in 'Black Hat SEO' started by carsonrathi, Feb 24, 2010.

  1. carsonrathi

    carsonrathi Senior Member

    Joined:
    Mar 12, 2008
    Messages:
    1,106
    Likes Received:
    759
    Hey Guys,

    I have one old domain with me in seperate hosting account, it's just 1 domain but with 20-30 sub domains and many folders and my this domain over all get 700 UV's every day.

    The problem is traffic comes from various sub domains and folders, is there's any script which i upload on my hosting and it can show some 'notice' or simply ads on header and footer of EVERY page on my hosting account?

    I mean there are 20-30k files on my server and i want all of them to show some specified ads on there header or footer, how can i do that?

    Please help.

    Thanks.
     
  2. Method

    Method Registered Member

    Joined:
    Jan 30, 2010
    Messages:
    90
    Likes Received:
    12
    Occupation:
    Spacebean
    I'm sure you can do something like this with htaccess. Pretty sure.
     
    Last edited: Feb 24, 2010
  3. carsonrathi

    carsonrathi Senior Member

    Joined:
    Mar 12, 2008
    Messages:
    1,106
    Likes Received:
    759
    Hi,

    But what to do with .htaccess file?

    Thanks,
    Carson
     
  4. mrtenev

    mrtenev Junior Member

    Joined:
    Jan 22, 2008
    Messages:
    125
    Likes Received:
    23
    If you have dreamweaver you can download all the files on your PC, then add the code on every page, there is automated way, just use search and replace function and search in the source code of the files and choose: apply to all files in the folder. Then reupload the updated files.
     
  5. carsonrathi

    carsonrathi Senior Member

    Joined:
    Mar 12, 2008
    Messages:
    1,106
    Likes Received:
    759
    It's not that easy, downloading 20k-30k files on local system and then re up, any shorter way?
     
  6. Method

    Method Registered Member

    Joined:
    Jan 30, 2010
    Messages:
    90
    Likes Received:
    12
    Occupation:
    Spacebean
    Code:
    php_value auto_prepend_file /includes/noticeadshere.php
    Is that any good?
     
  7. SirCaptain

    SirCaptain Newbie

    Joined:
    Jan 31, 2010
    Messages:
    32
    Likes Received:
    9
    Home Page:
    Depending on if you have SSH/terminal access to your server, you could use the `sed` program to recurse through all your *.html files and replace your </html> snippet with

    Code:
    <ad block here>
    </html>
    You could also do something for the opening <body> tag. It seems that this would be the only way to distinguish the top and bottom of the pages.

    Happy to offer some more guidance if needed, but without shell access, it might be a manual job. Sounds like PHP's auto_prepend might work, but not too familiar with it.