"Page visited" shows my style.php?

6 replies
When someone uses my contact form, the e-mail shows at the bottom three Referer lines (Type-in or bookmark), and then the three pages visited. The second one says "Page visited: http://skipthescams.com/wp-content/t...ity2/style.php

Do I have some setting wrong to cause this - does anyone know?
#page visited #shows #stylephp
  • Profile picture of the author HomeComputerGames
    Are you using a plug-in for this?
    I see the information you are talking about in hidden fields on the webpage.
    Signature

    yes, I am....

    {{ DiscussionBoard.errors[1509513].message }}
  • Profile picture of the author intoAM.com
    I can see the stylesheet uses PHP (maybe because it needs information stored in the WordPress database?). Depending upon the stats plugin you use, it might consider the request to this PHP file (style.php) another normal request to one of your blog pages, thus saving the statistical information regarding the request that was made to this page as it would in any other case.

    Does the plugin you use have a blacklisting feature? If so I'd recommend you to try using it.
    {{ DiscussionBoard.errors[1509610].message }}
  • Profile picture of the author Laura B
    Right, I'm using the Flexibility2 theme, which is why the stylesheet is PHP. I use the Enhanced WP Contact Form for the contact page and the Google Analytics plug-in for tracking. What exactly would I do with the blacklisting feature if there is one, which I don't see anywhere?
    Signature
    Free ebook: Affiliate Marketing: Just the FAQs
    Affiliate marketing for brand spankin' newbies
    {{ DiscussionBoard.errors[1510638].message }}
  • Profile picture of the author intoAM.com
    Re Blacklisting: you'd have to blacklist the style.php from being counted as a visited page, preventing the Enhanced WP Contact Form script from even saving any data of visits to the stylesheet.

    Well, I think you have two options if you can find no blacklisting feature and know nothing about PHP coding:

    a) Use a plugin different than Enhanced WP Contact Form to handle the contact forms and see if that solves the problem, or
    b) ONLY if you know you won't move the blog elsewhere (other domain) and that the current style/theme settings (should there be any) won't have to be changed, save (using your browser's File>Save as...) the current style.php file to get a copy of it which won't use the Wordpress database, then rename the original style.php which you can see in your webserver by using FTP or cPanel to something else, e.x. style_old.php, and upload the style.php you just saved a minute ago so that it replaces the file you just renamed.

    The 2nd option is much easier than it sounds and if you need to move the blog to another domain in the future or need to change the theme settings you can always do so by repeating the process (since the old style.php is still at style_old.php, so you'd be able to repeat the process by inverting the order of execution)

    Let me know if you have any doubts. Remember to always backup before taking action!
    {{ DiscussionBoard.errors[1510710].message }}
  • Profile picture of the author Laura B
    Thank you, Juan! Sorry I forgot to come back here sooner to thank you. I haven't had a minute to try it yet, but I will. I appreciate the help.
    Signature
    Free ebook: Affiliate Marketing: Just the FAQs
    Affiliate marketing for brand spankin' newbies
    {{ DiscussionBoard.errors[1519424].message }}
    • Profile picture of the author intoAM.com
      Originally Posted by Laura B View Post

      Thank you, Juan! Sorry I forgot to come back here sooner to thank you. I haven't had a minute to try it yet, but I will. I appreciate the help.
      No problem, Laura. Feel free to let me know if you still have problems!
      {{ DiscussionBoard.errors[1519462].message }}

Trending Topics