Page 1 of 1

CCount doesn't work on Chrome?

Posted: Fri Dec 19, 2014 8:44 pm
by henryconcise
Script URL: https://www.concise-courses dot com/hacking-tools/
Version of script: Latest
Hosting company: Fused Hosting
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

The script works great on every browser except for Chrome. I've tried on several machines and it's the same.

The display count for clicks and ID's is not shown...

What could the problem be? Any ideas? Fix this and I'll 100% buy the license. Thanks

Re: CCount doesn't work on Chrome?

Posted: Fri Dec 19, 2014 9:11 pm
by Henrie
When i look at the console of Chrome in the developers tools, it shows the following error:
Refused to execute script from 'https://www.concise-courses.com/php-lin ... isplay.php' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

So that is the error you need to fix.
You can try and see if the following helps
Change

Code: Select all

<script src="https://www.concise-courses.com/php-link-counter/display.php"></script>
to

Code: Select all

<script type="text/javascript" src="https://www.concise-courses.com/php-link-counter/display.php"></script> 
and all occurences of

Code: Select all

<script>ccount_display('countername')</script>
to

Code: Select all

<script type="text/javascript">ccount_display('countername')</script>

Greetings,
Henrie

Re: CCount doesn't work on Chrome?

Posted: Fri Dec 19, 2014 9:53 pm
by henryconcise
Hey thanks! I tried that but unfortunately still no joy...maybe I should try and disable strict MIME types but that might be a security problem...

Any other ideas?

Re: CCount doesn't work on Chrome?

Posted: Sat Dec 20, 2014 7:50 am
by Klemen
How about if you do as Henrie said AND add this to your display.php file, just under "define('IN_SCRIPT',1);" line:

Code: Select all

header("Content-type: text/javascript");

Re: CCount doesn't work on Chrome?

Posted: Sat Dec 20, 2014 7:56 am
by Klemen
P.s.: the strict mime types are up to the browser to enforce or not. A hacker would be using other tools anyway and completely ignore the "X-Content-Type-Options: nosniff" header the server sends.

Re: CCount doesn't work on Chrome?

Posted: Tue Dec 23, 2014 8:47 am
by henryconcise
I made changes:

1. Uploaded new display.php with the added line of 'header("Content-type: text/javascript");'
2. Changed the display code (where clicks are displayed) to: '<script type="text/javascript">ccount_display('nbtscan')</script>' (with matched ID name)
3. Changed the header javascript call to: '<script type="text/javascript" src="https://www.concise-courses dot com/php-link-counter/ display.php"></script>'

All the above changes worked in Firefox but Chrome still refuses to play nice.

Do you think I need to add a meta tag on the page to switch the MIME type?

Thanks again and Happy Xmas/ Holidays

Re: CCount doesn't work on Chrome?

Posted: Tue Dec 23, 2014 1:32 pm
by Klemen
I tested with Chrome and your page now displays fine for me.

Try clearing your browser cache and force refresh the page (Shift + F5).

Re: CCount doesn't work on Chrome?

Posted: Tue Dec 23, 2014 1:35 pm
by henryconcise
CORRECTION!

The above DOES work.

So for those with a similar problem or issue with Sniffer Scripts and Chrome - the above will likely help.

Big thank you to Klemen and Henrie.